public void initialize(int pop) {
		int percent = -1;
		
		map = new DMap(this,10,Math.pow(pop,1/3.));
		entityList = new ArrayList<Entity>();
		for(int i = 0;i < pop;i++) {
			//percentage management
			int newPer = (100*i)/pop;
			if(GlobalVars.debug && newPer>percent) {
				percent = newPer;
				System.out.println(percent);
			}
			
			Entity ent = new Entity(map);
			if(!ent.deletion()) entityList.add(ent);
		}
		
		//out file
		FileWriter fstream = null;
		try {
			fstream = new FileWriter("out.txt");
		} catch (IOException e) {
			e.printStackTrace();
		}
		out = new BufferedWriter(fstream);
	}