Update GuessNumberGame.java

added check to prevent NPE