private Chromasome genChild(Chromasome parent1, Chromasome parent2) {
		int[] par1 = parent1.returnChrom();
		int[] par2 = parent2.returnChrom();
		Chromasome child = new Chromasome(par1.length);
		if (Constants.secondCrossover) {
			int index = 0;
			while (index < par1.length / 2) {
				child.chromasome[index] = par1[index];
				index++;
			}
			while (index < par1.length) {
				child.chromasome[index] = par2[index];
				index++;
			}
			
		}
		else{
			for(int i = 0; i < child.chromasome.length; i++){
				if(rand.nextBoolean()){
					child.chromasome[i] = par1[i];
				}
				else child.chromasome[i] = par2[i];
				
			}
		}
		if (rand.nextDouble() < Constants.mutationChance) {
			child.mutate();
			Constants.mutations++;
		}
		return child;
	}