ArrayList<Schedule> fitnessCalc(ArrayList<Schedule> schedule){
	ArrayList<Schedule> scheduleFit = new ArrayList<>();
	Schedule chromoSchedule;
        
        //for(int i=0; i)
        
        for(int a=0; a<schedule.size(); a++){
	
            chromoSchedule = schedule.get(a);
            RoomScheme roomA = chromoSchedule.schedule[0][0];
            RoomScheme roomB = chromoSchedule.schedule[1][0];
            RoomScheme roomC = chromoSchedule.schedule[0][1];
            RoomScheme roomD = chromoSchedule.schedule[1][1];
            RoomScheme roomE = chromoSchedule.schedule[0][2];
            RoomScheme roomF = chromoSchedule.schedule[1][2];

            roomA.setFitness(checkFitness(roomA));
            roomB.setFitness(checkFitness(roomB));
            roomC.setFitness(checkFitness(roomC));
            roomD.setFitness(checkFitness(roomD));
            roomE.setFitness(checkFitness(roomE));
            roomF.setFitness(checkFitness(roomF));

            chromoSchedule.schedule[0][0] = roomA;
            chromoSchedule.schedule[1][0] = roomB;
            chromoSchedule.schedule[0][1] = roomC;
            chromoSchedule.schedule[1][1] = roomD;
            chromoSchedule.schedule[0][2] = roomE;
            chromoSchedule.schedule[1][2] = roomF;
            
            //chromoSchedule.setFitness(roomA.getFitness());
            chromoSchedule.setFitness(roomA.getFitness() + roomB.getFitness() + roomC.getFitness() + roomD.getFitness()+
                                      roomE.getFitness() + roomF.getFitness());
            
            scheduleFit.add(chromoSchedule);
	}
        return scheduleFit;
    }