fixed bug in movement causing the player to not be registered correctly on the ground