Tic-Tac game in C++ using minimax planning