Genetic algorithm working, not optimized