public void endOrPlay()
 {
     if (!checkEndGame())
     {
         if (gameForm.InvokeRequired)
         {
             EnablePlayCallback epc = new EnablePlayCallback(gameForm.enablePlay);
             gameForm.Invoke(epc, new object[] { true });
         }
         else
         {
             gameForm.enablePlay(true);
         }
     }
 }
 private void startGame()
 {
     if (firstPlayer)
     {
         if (gameForm.InvokeRequired)
         {
             EnablePlayCallback epc = new EnablePlayCallback(gameForm.enablePlay);
             gameForm.Invoke(epc, new object[] { true });
         }
         else
         {
             gameForm.enablePlay(true);
         }
     }
     else
     {
         net.receiveShot();
     }
 }