public static void main(String[] args){
      
      java.util.Date date= new java.util.Date();


      if(args.length > 1){
         System.err.println("Seed: " + args[1]);
         rand.setSeed(Long.parseLong(args[1]));
      }else{
         System.err.println("Seed: " + date.getTime());
         rand.setSeed(date.getTime());
      }

      for(int i = 0; i < args.length; i++){
         System.err.println(args[i]);
      }
		initMap(size);
      if(args.length > 0){
         predators = true;
         if(args[0].equals("no-pred")){
            predators = false;
            initCreatures(20);
            initPredators(0);
         }else if(args[0].equals("pred-win")){
            predWin = true;
            initCreatures(20);
            initPredators(4);
            predatorThreshold = 1;
         }else if(args[0].equals("pred-lose")){
            predWin = false;
            initCreatures(40);
            initPredators(2);
         }
      }
		pf = new preferredDirectionSharing();
		ps = new predatorStrat();
		System.out.println(size + " " + size);
		//		System.out.println("Map initialized.");
		//		System.out.println("Creatures initialized.");
		//initPredators(2);
		displayMap();
      //System.err.println("Population,Sight,Cooperation,Food,Fertility,Movement Speed,Gathering Speed");
		while (gennum < generations){
			//System.err.println("Agents: " + creatures.length);
			runGeneration();
			//          System.err.println("Before sharing: ");
			//          creature[] before = sortCreaturesByFood();
			//          for(int i = 0; i < before.length; i++){
			//             System.err.println(before[i].food);
			//          }
         if(predWin){
            share();
         }
			//          System.err.println("After sharing: ");
			//          creature[] after = sortCreaturesByFood();
			//          for(int i = 0; i < after.length; i++){
			//             System.err.println(after[i].food);
			//          }
			//System.err.println();
			printInfo();
			createNextGeneration();
			initMap(size);
			gennum++;
		}
	}