Bouncing Balls Solver