ball moves and responds to changes in direction
rotate ball according to movement direction