Text this: Adaptive Path Following and Locomotion Optimization of Snake-Like Robot Controlled by the Central Pattern Generator