Update GrammarSolver.java