public static bool IsPlayerInGame(RiotApi api, out RootObject GameInfo, long player, string plat, Region reg)
        {
            try
            {
                if (reg == Region.pbe)
                {
                    GameInfo = api.GetCurrentGamePBE(Region.pbe, player, "PBE1");
                }
                else
                {
                    GameInfo = api.GetCurrentGame(reg, player, plat);
                }


                if (GameInfo != null)
                {
                    return(true);
                }
            }
            catch
            {
            }
            GameInfo = null;
            return(false);
        }