Genetic algorithm to optimise movement of limbed beings