private Zyg genZygote(int n)
    {
        String bin = convertBin(n,l);
        String[] b = new String[g.length];
        //This is the symbolic binary permutation. 
        for(int i=0;i<g.length;i++)
        {   b[i] = bin.substring(i,i+1);   }
        
        //this is going to be the list of characters that will be used to construct the new Zyg.
        char[] c = new char[g.length];
        //This is going to go through the symbolic binary permutation and the gene list and match the two.
        for(int i=0; i<g.length;i++)
        {
            if (b[i].equals("0"))
            {   c[i] = (char)(g[i].allel1);   }
            if (b[i].equals("1"))
            {   c[i] = (char)(g[i].allel2);   }
        }
        
        Zyg z = new Zyg(c);
        return z;
    }