Add loading component, fix AI, fix command pool bug.