MutateGrammar now only generate valid grammar and also we can specify
where we want to output the mutated grammars