Colliding Balls simulation done for class