Text this: CPG-based control system for flexible snake robot locomotion