Tic-Tac-Toe Math