added Actor to components.js, refactored game.js and included components.js in index.html