Terminal-based noughts and crosses game.