Update MainGame.js

Fixed some prompt input validation.