Create HangmanLogic.java

This is the hangman logic that the professor provided