Text this: Multi-agent application: a novel algorithm for hexapod robots gait transitions