added basic functionality to hangman2.rb