Tic-tac-toe game in the terminal