 }
 
 void loop() {
-  Serial.println(status);
   switch (status) {
-    case 1:      
+    case 1:
       if ((millis() - start_millis) >= delay_millis) {
         status = 3;
       }

  PCIFR  |= bit(1);
  PCICR  |= bit(1);
  status = 2;
}

ISR (PCINT1_vect)
{
  if (robot.leftEdge() || robot.rightEdge()) {

MiniRobot robot;

byte status;
unsigned long start_millis;
long delay_millis, enemy_millis = 5;
long dist, dist_before, dist_good = 0;
int good_count = 3;

void setup() {
  pinMode(A0,INPUT);   // set Pin as Input (default)
