Tic-Tac-Toe for terminal