Added validation against putting own king in check