Fixed game.js

Main fix for game.