Squash


See the similar problem Snooker for ideas on how to do this calculation.