Turns a sprite in the opposite direction when it touches the edge of the stage.