Update MainGame.js

Experimenting with parseInt, and cleaning up some work. Trying new formats