sort if a billiard game