prototype of hangman