mastermind game in ruby