fixed bug in game.js