 int y;
 char cstr[20];
 String str;
-int rowadd = 3;
-int coladd = 1;
+int rowadd = 0;
+int coladd = 0;
 unsigned int num = 0;
 
+int commands[100];
+int duration[100];
+
+int index;
 void setup()
 {
   

        }else if (insideRegion(0, 2, x, y, BUTTON_W)) // ROTATE
        {
           HWLOGGING.print("ROTATE");       
           drawButton("ROTATE", 0, 2, BUTTON_DOWN);
        }else if (insideRegion(0, 3, x, y, BUTTON_W)) // SHOOT
        {
           HWLOGGING.print("SHOOT");       
          drawButton("SHOOT", 0, 3, BUTTON_DOWN);
        }else if (insideRegion(0, 5, x, y, BUTTON_W)) // ERACE
        {
           HWLOGGING.print("ERACE");       
          drawButton("ERACE", 0, 5, BUTTON_DOWN);
        }
        break;
    


#define INIT_STATE 0
#define MOVE_STATE 1
#define ROTATE_STATE 2
#define GO_STATE 3
#define ERASE_STATE 4

#define MOVE 1

int state = INIT_STATE;
void loop()
