solution for hangman game