King checking fix