refactor peggame.peg.js also.