simple console game in ruby - codebreaker