reformatted game.js file