Functioning hangman program