rewrite generation
fixing generation
stopped on the fitness rewriting
fix for_each_gene in generation