Command line tic-tac-toe