cleaning up game.js