Update Hangman.java

change the code