modified game.js