public void shuffle( boolean Graycode, float mf, boolean Food ) {

                Random generator = new Random();

                chrom = mutate(Graycode,mf);

		DecodeChrom();
		int c  = (int)(Math.random() * 13);
                               
     
                if ( Food == false ){
                  if ( c == 5 ){
                     int c2 = (int) (Math.random() * 12);
                     c2 = c2 + 1;
                     c = c + c2 ;
                     if ( c > 12) {
                         c = c2 - c;
                     }
                  }
                } 
                 
                
                
		AssignColor(c); 
		
                if (color == Color.green) {
                         type = 0;  
                    
                    // x = (float) ( (generator.nextGaussian() * (width-margin))  );
                    // y = (float) ( (generator.nextGaussian() * (height-margin)));
                    // vx = (float) (generator.nextGaussian() * v0/2);
                    // vy = (float) (generator.nextGaussian() * v0/2);
                    }   else    {
                          type = 1;
                    // x = (float) ((generator.nextGaussian() * (width-margin*2))  );
                    // y = (float) ( (generator.nextGaussian() *(height-margin*2)));
                    // vx = (float) (generator.nextGaussian() * v0);
                    // vy = (float) (generator.nextGaussian() * v0);
                }

            xtail = x;
            ytail = y;

	}