Refactored the GeneticAlgorithm.groovy to WORK.