set MainGeneticAlgorithm as global