add comment for game.js and endgame.js