Problem Set 3 - Problem 6 - Hangman Part 5: Hangman Main Function (Advanced Version)