TicTacToe class implementation completed