Better code to make the player move