Simple Ruby version of the game mastermind