C++ version of TicTacToe