fixed player sprite changing position when switching directions