    helloWorld();
 }
 
+// Returns true if the command should be ignored (duplicate command)
+// Origin of idea:
+// https://bitbucket.org/angel-ignatov/sdp14-15-group-15/src/150da3baeb2045b83add95c70cfca494873c4180/arduino/arduino.ino?at=master&fileviewer=file-view-default
+bool ignore(int seqNo)
+{
+  if (seqNo == lastSeqNo) {
+    return true;
+  } else {
+    lastSeqNo = seqNo;
+    return false;
+  }
+}
+
 
 int getNumFromChar(char c){
   int r = (int)c - (int)'0';

      // need to check if signuture is our teams first!
      // avoids unessacary computation on the arduino if it is not a message for out team.
      int sig = getSig(c);
      if(sig != 0){ return; }

        int opcode = getOpcode(c);
        int arg = getArg(c);


int getSig(String c){
  int r = getNumFromChar(c[0]);
  return r;
}

int getSeqNo(String c){
  int r = getNumFromChar(c[6]);
  return r;
}

