     isDefaultPosition = true;
 
   return (currentDirection);
+}
+
+void debugPrintGrid() {
+  int i = 0;
+
+  while (i < 16) {
+    if (i % 4 == 0)
+      Serial.print("[");
+    
+    Serial.print(_grid[i++]);
+
+    if (i % 4 == 0)
+      Serial.println("]");
+    else
+      Serial.print(", ");
+  }
 }
      else if (vertical == 4)
        currentDirection = Down;
      else if (horizontal == 0)
        currentDirection = Left;
      else
        currentDirection = Right;
    }
  }
  // Else check if the joystick is back to its default position

  switch (direction) {
    case Up:
      Serial.println("Go to: Up");
      moveGridTo(0, 1, 4);
      printGrid();
      break;
    case Right:
      Serial.println("Go to: Right");
      moveGridTo(3, 4, -1);
      printGrid();
      break;
    case Down:
      Serial.println("Go to: Down");
      moveGridTo(12, 1, -4);
      printGrid();
      break;
    case Left:
      Serial.println("Go to: Left");
      moveGridTo(0, 4, 1);
      printGrid();
      break;
    default:
      ;
  }
}

/**
