private void setNests(int size) {
		size = Math.max(size, 1);
		int gridSize[] = antWorld.getGridSize();
		if(size*2+3>=Math.min(gridSize[0], gridSize[1])) {
			size = Math.min(gridSize[0]-3, gridSize[1]-3)/2;
		}
		int counter = 0;
		boolean done = false;

		int redXPos;
		int redYPos;
		int blackXPos;
		int blackYPos;
		do {
			redXPos = AntWorld.getRandom(gridSize[0]-(size+1)*2)+size+1;
			redYPos = AntWorld.getRandom(gridSize[1]-(size+1)*2)+size+1;
			blackXPos = AntWorld.getRandom(gridSize[0]-(size+1)*2)+size+1;
			blackYPos = AntWorld.getRandom(gridSize[1]-(size+1)*2)+size+1;
			if(checkNestPositions(size, new int[] {redXPos, redYPos},  new int[] {blackXPos, blackYPos})) {
				done = true;
			} else {
				counter++;
				if(counter>1000) {
					counter=0;
					size--;
				}
			}
		} while(!done);
		placeNests(size, new int[] {redXPos, redYPos},  new int[] {blackXPos, blackYPos});
	}