added comments to game.js