[Computer Graphics] Simulating collisions of billiard motion using OpenGL