updated Hangman

added new function