tic-tac-toe (console version)