  - enemy forward;
 */
 
-int count = 0;
+unsigned long start_millis;
+long delay_millis;
+long dist;
 
 void setup() {
-  PCMSK1 |= bit(0) | bit(1);
+  pinMode(A0,INPUT);   // set Pin as Input (default)
+  pinMode(A1,INPUT);   // set Pin as Input (default)
+  PCMSK1 |= bit(0) + bit(1);
   PCIFR  |= bit(1);
   PCICR  |= bit(1);
-  pinMode(A0,INPUT);   // set Pin as Input (default)
-  digitalWrite(A0,HIGH);  // enable pullup resistor
-  pinMode(A1,INPUT);   // set Pin as Input (default)
-  digitalWrite(A1,HIGH);  // enable pullup resistor
+  status = 2;
 }
 
 ISR (PCINT1_vect)

}

void loop() {
  switch (status) {
    case 1:
      count--;
      if (count <= 0) {
        status = 3;
      }
      break;
    case 2:
      robot.back();
      count = 15;
      status = 1;
      break;
    case 3:


MiniRobot robot;

byte status;
/*
0 - don't need changes;
1 - counter only
