added front end for hangman