changed the direction of the snake