refact server codes, add recommand in YGOCS