fix a bug of surrender
clean up about flags
prevent endless surrender request
optimize YingHun AI by Mystery333