Makes the player flip in direction.