How not to code a TicTacToe game