Genetic algo working