Mastemind in Ruby