mastermind game on terminal