       break;
     default:
       Serial.println("200 - Everything ok!");
+      Serial.println(accidentState);
       break;
   }
 }

}

void loop() {
  int accidentState = 5;
  AccidentDetector(&accidentState);
  Serial.println(accidentState);
  switch (accidentState) {
    case 5:
      Serial.println("205 - Hit from back! DistanceBack -> Gyro");
      break;
    case 6:
      Serial.println("206 - Hit in front! DistanceFront -> Gyro");
      break;
    case 7:
      Serial.println("207 - Hit while surrounded! Distances -> Gyro");
      break;
    case 8:
      Serial.println("208 - Hit in front! Gyro -> DistanceFront");


  switch (newState) {
    case 5:
        *state = 5;
      break;
    case 6:
        *state = 6;
      break;
    case 7:
      *state = 7;
      break;
