finished game.js updated