   doWelcome();  
   
   // Find other player
-  rival_id = findPlayer();
+  findPlayer();
 }
 
 

  initializeHardwarePeripherals();
  // 3 - Show the welcome message
  doWelcome();  
  // 4 - Find other player
  display.printText("Waiting for players...", 6, 1, GREEN);
  String result = findPlayer();
  start_turn = result[4];
  rival_id = result.substring(0,4);
}

void loop() {
  delay(200);
  boolean waitForMove = true;
  
  if ((turn > 0) || (turn == 0 && start_turn=='0')){
    // ************************************************************************
    // ******** Player turn ***************************************************
    // ************************************************************************

#define VICTORY_LOOP 0x3 //Victory loop!!!
#define NO_NO 0x4 //Illegal move

// Communication msgs
String MSG_REGISTER = "REGISTER"; // id
String MSG_FIND_GAME = "FIND_GAME"; // id
String MSG_DO_MOVE =  "DO_MOVE"; // id movement(0..8)
String MSG_GET_MOVE = "GET_MOVE"; // id
String END_CHAR = "\0d"; // id
// Server commands
String CMD_WAITING_PLAYERS = "WAITING_FOR_PLAYERS";
String CMD_RIVAL = "RIVAL"; // rival_id turn(0/1)
String CMD_NOT_REGISTERED = "NOT_REGISTERED";
String CMD_WAIT_FOR_MOVE = "WAIT_FOR_MOVE";
String CMD_WAIT_FOR_RIVAL = "WAIT_FOR_RIVAL";
String CMD_WAIT_FOR_TURN = "WAIT_FOR_TURN";
String CMD_RIVAL_MOVE = "RIVAL_MOVE"; // # rival_id move
String CMD_ACK = "ACK"; // rival_id move


// Baseboard screen
