changed game.js to not render all scenes at once