private bool IsCheck(PieceColor color, Board.Board board) { return(GetThreatPositionsForColor(color, board).Any(p => p == board.KingPosition(color))); }