Fixed the error handling

The problem was in the TicTacToe.cpp