TicTacToe game in C++ (XCode)