Refactured CheckNextKingPosition().