Evolving an Adaptive Controller for a Legged-Robot With Dynamically-Rearranging Neural Networks