int checkFitness(RoomScheme chromo){
        Subject subject;
        int fitness = 0;
        ArrayList<Integer> subjectsChecked = new ArrayList<>();
        //Check conditions for 1 Subjects
        for(int a=0; a<5; a++){
          for(int b=0; b<6; b++){
            subject = chromo.rooms[a][b];
            if(subjectsChecked.indexOf(subject.getCode()) == -1){
                fitness = fitness + checkHours(chromo, subject.getCode())+checkRepeat(chromo, subject.getCode(), a)+checkConsecutives(chromo, subject.getCode(), a);                
            }
            subjectsChecked.add(subject.getCode());
          }
        }
        return fitness;
    }