Colliding balls demonstrating collision detection and handling