resolve a hangman game