 
 #include <Wire.h>
 #include <GraphicDisplay.h>
-#include <SM125.h>
+#include <SM125.h> //RFID
+#include <SoundPlayer.h>
 
 #define DISPLAY_ADDRESS  0x51
 #define BUTTONS_CHANGE   43

 *   COMMUNICATION WITH THE GAME SERVER
 **********************************************/

int findPlayer(){
  //TODO
  // rival_id = send ("REGISTER " + player_id + "\0n")
  // returns the rival_id
  return 113;

}

int getMove(){
  //TODO
  // move = send ("GET_MOVE " + rival_id)
  return 0;
}

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


 
void initializeHardwarePeripherals(){
  initializeRFID();
  initializeSoundPlayer();
  initializeScreen();
}

void initializeRFID(){
  sm125.begin(SM125_ADDRESS);
}

void initializeSoundPlayer(){
  soundPlayer.begin(0x61);
  int ver = soundPlayer.getVersion();  
  switch(ver)
  {
  case 0x10:
    Serial.println("Version: 1.0)");
    break;
  }
}

void initializeScreen(){
