Made Changes to Hangman.java

Added in code to allow the program to pass the unit tests.