Added some maths for ball movement. Triggers for when ball is out of play or in goal.