Genetic algorithm somewhat working, major issues