hundreds of ganglions scattered throughout the body were jointly capable of distributed computation ; if the brain were to be destroyed , much intelligence and memory would remain , guiding the bodys actions until the brain could be regenerated .