Ruby implementation of the classic Hangman word game