private static void initAgents(Simulation controller) {
    	agents = new Agent[numAgents];
    	
    	int id = 0;
    	for(int i = 0; i < numStrategies; i++) {
    		int a = 0;
    		while (a < agentsStrat[i]) {
    			agents[id] = new Agent(controller, id, strategies[i]);
    			id++;
    			a++;
    		}
    		a = 0;
    	}
    	
    	for(int a = 0; a < numAgents; a++) {
    		int x = 0;
    		int y = 0;
    		boolean free = false;
    		while(!free) {
    			x = gen.nextInt(xSize);
    			y = gen.nextInt(ySize);
    			if ((grid[x][y].getAgent()) == null) {
    				free = true;
    			}
    		}
    		
    		agents[a].setPosition(x,y);
    		grid[x][y].setAgent(agents[a]);
    	}
    }