bug fix in game.js