add king check logic