int checkRepeat(RoomScheme chromo, int code, int day){
      int counter=0;
      for(int a=0; a<6; a++){
        if(chromo.rooms[day][a].getCode() == code){
          counter--;
        }
      }
      return counter;
    }