implemented getDependency

implemented game.prototype.getDependency
editor.loadGame loads dependencies