public void setCurrentPlayer(int player) {
    	if (current_player != -1) {
    		for (int i = 0; i < unitDefinitions.resource_defs.get(current_player+1).size(); i++) {
    			unitDefinitions.resource_defs.get(current_player+1).get(i).active_player = false;
    		}
    		for (int i = 0; i < unitDefinitions.unit_defs.get(current_player+1).size(); i++) {
    			unitDefinitions.unit_defs.get(current_player+1).get(i).active_player = false;
    		}
    		for (int i = 0; i < unitDefinitions.building_defs.get(current_player+1).size(); i++) {
    			unitDefinitions.building_defs.get(current_player+1).get(i).active_player = false;
    		}
    	}
    	
    	current_player = player;
    	for (int i = 0; i < unitDefinitions.resource_defs.get(current_player+1).size(); i++) {
			unitDefinitions.resource_defs.get(current_player+1).get(i).active_player = true;
		}
		for (int i = 0; i < unitDefinitions.unit_defs.get(current_player+1).size(); i++) {
			unitDefinitions.unit_defs.get(current_player+1).get(i).active_player = true;
		}
		for (int i = 0; i < unitDefinitions.building_defs.get(current_player+1).size(); i++) {
			unitDefinitions.building_defs.get(current_player+1).get(i).active_player = true;
		}
    }