Genetic Algorithm for AI class