program that performs hangman game