Update GrammarMain.java

Okay, only method left for me to write is the generate method