 
 void setup()
 {
+  for (int x=0; x<gridcolumns; x++) {
+    for (int y=0; y<gridrows; y++) {
+      ids[x][y] = 0;
+    }
+  }
+  
   shield.setOnRefresh(refresh);
   screen.setOnEvent(screenEvent);
 

const int tappedHash = 38322;
const int pressedHash = 56990; 
const int releasedHash = 13117;

int ids[gridcolumns][gridrows];
int touchX, touchY;

      y = tag[1]-48;
  }
  
  if (shieldEvent->actionHash == tappedHash || shieldEvent->actionHash == enteredHash) {
    if (tag[1] == 0 && tag[0] < 48+(colorCount+1) && tag[0] >= 48) {
      //color
      if (tag[0] == 48+(colorCount)) {
