Added functionality to manipulate ball velocity and direction by clicking the ball and drawing a line with arbitrary direction and length from the ball, where velocity is represented by the length of the line