Commandline Mastermind game in Ruby