minor fixes to game.js