Changed manipulateChromosomes.c to be simpler