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

MiniRobot robot;

byte status;
/*
0 - don't need changes;
1 - counter only
2 - drive straight back;
3 - drive straight forward;
4 - spin around
 - enemy forward;
*/

unsigned long start_millis;
long delay_millis;
long dist;

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

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

//interupt for IR sensor changes
ISR (PCINT1_vect)
{
  if (robot.leftEdge() || robot.rightEdge()) {
