lab2: ball collisions