fixed bug with mating algorithm