public void Register(string name, string photoUrl, string game_name)
 {
     if (!Adaptors.ContainsKey(OperationContext.Current.SessionId))
     {
         PlayerSLAdaptor adaptor = new PlayerSLAdaptor(name,
             OperationContext.Current.SessionId, photoUrl,
             OperationContext.Current.GetCallbackChannel<IPlayerClient>());
         PlayerService.Adaptors.Add(adaptor.SessionID, adaptor);
         if (!Brain.GameFactory.AddPlayer(adaptor, game_name))
             PlayerService.Adaptors.Remove(adaptor.SessionID);
     }
 }
 internal static void KillPlayer(PlayerSLAdaptor playerSLAdaptor)
 {
     // get rid of this player
     Adaptors.Remove(playerSLAdaptor.SessionID);
 }
 public void StartGame(string name, string photoUrl, int numberOfAIPlayers, string[] player_AI, int num_of_rounds, int milliseconds_between_turns, string game_name)
 {
     if (Adaptors.ContainsKey(OperationContext.Current.SessionId))
     {
         GameFactory.Games.Clear();
         Adaptors.Remove(OperationContext.Current.SessionId);
     }
     PlayerSLAdaptor adaptor = new PlayerSLAdaptor(name,
         OperationContext.Current.SessionId, photoUrl,
         OperationContext.Current.GetCallbackChannel<IPlayerClient>());
     PlayerService.Adaptors.Add(adaptor.SessionID, adaptor);
     Brain.GameFactory.CreateGame(adaptor, numberOfAIPlayers, player_AI,  num_of_rounds,  milliseconds_between_turns, game_name);
 }