  **********************************************/
  
 void registerPlayer(){
+  Serial.println("Registering player...");
   sendMsg(MSG_REGISTER + player_id + END_CHAR);
 }
 
 void findPlayer(){
+  Serial.println("Finding other player...");
   boolean notFound = true;
   while(notFound){
     String res = sendAndWait(MSG_FIND_GAME + player_id + END_CHAR);

}

void sendMove(int player_move){
  //TODO
  // send ("MOVE " + player_move + player_id)
  // MOVE # ####
  Serial.println("sending move");
}

void sendMsg(String msg){}
String sendAndWait(String msg){ return "foo"; }


/**********************************************

    // if not_registered -> register
    // if rival -> set start_turn, set rival_id, notFound = false
    if (command == CMD_WAIT_FOR_RIVAL){
      Serial.println("Waiting for rivals...");
      delay(1000);
    } else if (command == CMD_NOT_REGISTERED){ // This shouldn't happen
      Serial.println("Not registered");
      registerPlayer();
    } else if (command == CMD_RIVAL){
      Serial.println("Rival found");
      String parameters = getParameters(res);
      rival_id = getParameter(parameters, 1);
      start_turn = getParameter(parameters, 2);
