int checkHours(RoomScheme chromo, int code){
      int counter=0;
      int auxCounter=0;
      for(int a=0; a<5; a++){
        for(int b=0; b<6; b++){
          if(chromo.rooms[a][b].getCode() == code){
              auxCounter++;
              if(auxCounter > 2){
                  counter--;
              }
          }
        }
      }
      return counter;
    }