if (!withdrawn && creep.room.memory.controllerContainer) {
                const controllerContainer = Game.getObjectById<StructureContainer>(creep.room.memory.controllerContainer);
                if (controllerContainer && controllerContainer.store.energy > 50 && creep.pos.getRangeTo(controllerContainer) <= 1 && creep.withdraw(controllerContainer, RESOURCE_ENERGY) === OK) {
                    withdrawn = true;
                }