tic-tac-toe written in C++