game.js changes to include resourceManager