change direction of the sprite