private bool IsKingInCheck(ChessColor player) { King playerKing = Board.GetKing(player); return(IsSquareAttacked(player, playerKing.Position)); }