Program to model bouncing billiard balls with obstacles