Update the ball class to use the new features of the vector library.