merged game.js with index.js