A Biomimetic Learning Control Scheme for control of Modular Robots