        }   
   else {
      Serial.println(F("Error in F2L"));
+     solving_level = 7;
   }
 
 }

  //scanCube();  ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  detachInterrupt(0);
  copyCube();
  virtualSequence(F("RDURL"));  //"RDURL"
  solveCube();
  assembleCube(SolvedCube);
  detachInterrupt(0);

  ".BlbLUUlubUBllul.RUrUrFRfUUrFRf.fBulULULUluFb.RUruLrFRfl.LFrflRURur.FURurURurf.BUbUBuLulb.rFRfUURurUfUUF.FUUFFuFufUULFl.lBLUlubLulUUL.rfRluLUrFR.BULUUluLUlb"
  ".lBLUlbLBub.FRUruf.RUrurFRf.RURRurFRURuf.bubRBrUB.rFRUrufUR.LfluLUFul.LFUfuFUful.fluLUluLUF.LFrFRfrFRFFl.LFUfuFufUFUfl.LfllBllFllbL"
  ".fRUUrUUrFFRf.LFFrfRfl.rFFLFlFR.LUlUlBLbLUUl.RUrurFRRUruf.LFrFRFFL.rfLflFFR.BLUlubUBLUlub.LrFRFrFRFFrFlR.burURB.BULulb.luBULulbL"
  ".RUburURBr.RUrURururFRf.LUlUUbuBuLul.LUUllBLbLUUl.FrfRURur.RurUURUBubur.lULUUlubUBUL.RRUrbRuRRURBr.lBLbLUUlubuB."
  ;

//Table for PLL step possible patterns
const byte pll_t [][12] PROGMEM = {
  {36, 46, 20, 18, 19, 11, 37, 38, 9, 47, 45, 10}, {37, 38, 45, 36, 10, 20, 47, 18, 19, 46, 9, 11}, {45, 10, 20, 37, 47, 18, 38, 46, 9, 36, 19, 11},
  {37, 47, 45, 18, 20, 10, 36, 38, 46, 19, 11, 9}, {47, 45, 19, 18, 20, 46, 36, 38, 10, 37, 9, 11}, {37, 18, 20, 47, 46, 45, 19, 11, 9, 36, 38, 10},
  {18, 20, 10, 47, 46, 45, 37, 11, 9, 36, 38, 19}, {47, 46, 9, 18, 11, 10, 36, 37, 38, 45, 19, 20}, {18, 19, 11, 47, 9, 10, 36, 37, 38, 46, 45, 20},
  {36, 46, 11, 18, 20, 10, 37, 38, 45, 47, 19, 9}, {37, 18, 20, 36, 46, 11, 47, 9, 10, 45, 38, 19}, {47, 46, 9, 18, 19, 11, 36, 38, 10, 37, 45, 20},
  {37, 45, 20, 47, 18, 19, 38, 46, 9, 36, 10, 11}, {45, 10, 20, 36, 37, 38, 47, 19, 9, 18, 46, 11}, {45, 10, 20, 47, 18, 19, 37, 38, 9, 36, 46, 11},
  {47, 46, 18, 45, 19, 20, 36, 11, 10, 37, 38, 9}, {46, 45, 20, 47, 18, 19, 38, 10, 9, 36, 37, 11}, {38, 45, 10, 36, 46, 20, 47, 18, 19, 37, 11, 9},
  {38, 46, 9, 37, 47, 45, 18, 19, 11, 36, 10, 20}, {37, 47, 9, 46, 11, 18, 36, 38, 10, 45, 19, 20}, {38, 46, 9, 47, 45, 10, 37, 18, 11, 36, 19, 20}
  };

//PLL solutions
const char pll_solutions [] PROGMEM =
  "rFrBBRfrBBRR.RRBBRFrBBRfR.rurdRurDRUrdRUrDRR.fuFuFUFufUFUFFufUU.RRllDRRllDDRRLLDRRll.RuRURURuruRR.RRURUrururUr.RUUruRUUlUruL.urUlUURurUURL.URRFRURurfRUUrUUR"
  ".LUUlUULfluLULFllU.RUrurFRRuruRUrf.FRuruRUrfRUrurFRf.urURuRRfuFURFrfRR.rUURUULurUlULuRUl.RuLUUrUlRuLUUrUlu.rURurfuFRUrFrfRuR.RRFFRUURUUrFRUrurFRR"
  ".RRfRURurfRUUrUUrFFRR.LLFFlUUlUULfluLULfll.fuFRRDbUBuBdRR."
  ;

//Variables and counters for solving steps
