mastermind on the command line with ruby