public static void mutateInAncestorsDirection(int[] gene, int[] inheritedGene, int[] grandpaGenes) {
        int diff;

        for (int i = 0; i < Constants.GENE_COUNT; i++) {
            diff = inheritedGene[i] - grandpaGenes[i];
            gene[i] = inheritedGene[i] + (int) (diff * WormUtils.getRandomPercent());
            if (gene[i] < 0) {
                gene[i] = 0;
            } else if (gene[i] > Constants.MAX_GENE_VALUE) {
                gene[i] = Constants.MAX_GENE_VALUE;
            }
        }
    }