Mastermind game in Ruby