Hangman program from Ruby Fundamentals II