Snake with robotic legs