The code simply sets up a two-dimension array. This array is a list of all the
winning combinations. If the same player controls cells 0, 1, and 2, that player
has won the game. Each row represents a different winning combination.
It then becomes easy to check for a winner: