Tic-tac-toe with or without the GUI.