terminal-based mastermind game