Fixed mutateChromosome function