Game of tic tac toe in C++