modify isKingOrNot