/// <summary>Start a new game. (You will be palyer 1)</summary>
 public bool newGame()
 {
     try {
         string toSend = "NEW " + opponent;
         socket.getOut().WriteLine(toSend);
         socket.getOut().Flush();
         string recieve = socket.getIn().ReadLine();
         endGame = false;
         if (recieve == "TRUE")
         {
             return(true);
         }
         return(false);
     } catch (Exception e) {
         ChessActivity.OnServerFail();
         return(false);
     }
 }
 public string GetMsg()
 {
     try {
         sock.getOut().WriteLine("GET");
         sock.getOut().Flush();
         string value = sock.getIn().ReadLine();
         if (value == "")
         {
             return(value);
         }
         else
         {
             return(value + "\n");
         }
     } catch (Exception e) {
         return("");
     }
 }