How to Play 8-Ball: Racking the Balls in Billiards