altered game.js