Update WordGenerator.java