public void copyTo(GameActor a) {
        for(BaseComponent bc : components.values()) {
            BaseComponent bc2 = a.getComponent(bc.getName());
            if(bc2 != null) {
                bc.copyTo(bc2);
            }
        }
        
        for(String comp : enabledComponents.keySet()) {
            if(enabledComponents.get(comp)) {
                a.enableComponent(comp);
            }
            else {
                a.disableComponent(comp);
            }
        }
    }