implement text based mastermind game