fixed npe when player is not moving against the wall