fix issues where game was undefined in Game.js