Added executeChromosome fuction