Coding exercise to evaluate the result of a tic-tac-toe game.