private static void playGame(ClientInfo client, JObject jsonObject) { var gameIdToken = jsonObject["gameId"]; if (((gameIdToken == null) || (gameIdToken.Type != JTokenType.Integer))) { throw new ArgumentException("Error: Parameters Mismatch at Check."); } var response = sl.playGame((int)gameIdToken); SendMessage(client, response); }