Tic tac toe in c++ using ncurses.