Made the player move properly