     if ((millis() - PortTimeout) >= 10000) {
     lcd.clear();
     lcd.setCursor(0, 0);
-    lcd.print("Timeout error");
+    lcd.print(F("Timeout error"));
     lcd.setCursor(0, 1);
-    lcd.print("try again");
+    lcd.print(F("try again"));
     } 
 }
 

  
}




////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

  push();
  push();

  verifyScannedCube();
  Serial.println(ScannedCube); /////////////////////////////////////////////////////////////////////////////////
  
}


//Method for vefirying the scanned cube side
void verifyScannedSide() {
  boolean sideOK = true;
  for (byte i=0; i<9; i++) {
    if (SideScanResult[i] == 'X') sideOK = false;
  }
  if (sideOK == false) {
    selectedButton = selectOption(F("Side scan error"), F("Repeat   Restart"), F("Repeat"), F("         Restart"));
  if (selectedButton == 0) scanTopSide();
  else normalFlow();
  }
  else addSideToScanCubeString();
}



//Method for verifying whether the cube was scanned correctly
void verifyScannedCube() {
  boolean scanErrorFlag = false;
  byte w_count = 0;
  byte y_count = 0;
