Better winning through MATH

Make use of the mathematical properties of a tictactoe board to
simplify the rules for winning (in point of fact, there is now only
one rule for winning).