Refactor GuessGame.java