Please look at this page & keep it in mind for future posts. You can edit your post with it, too: Using code tags properly
It will look much nicer, and be easier to read.
From your description, all that came to mind is make sure there isn’t something that can push the player before it can determine if the player is in the way?
I didn’t attempt to read all of that code posted like that, though, sorry.