try-catch for exception Messages in HangmanDemo