Update GrammarSolver.java

Fixed extra whitespace issue.
Also there's no need to make a new list in the constructor - you're handed one already.