Hangman game using Ruby objects