game.js modified 2