% \begin{figure}[!h]
%     \centering
% \begin{tikzpicture}[level distance=9mm]
% \tikzstyle{every node}=[fill=red!50,circle,inner sep=1pt]
% \tikzstyle{level 1}=[sibling distance=8mm,
% set style={{every node}+=[fill=red!40]}]
% \tikzstyle{level 2}=[sibling distance=5mm,
% set style={{every node}+=[fill=red!20]}]
% \node [fill=blue!50] {8}
% child {node {4}
% }
% child {node {6}
% }
% child {node [fill=blue!45] {6} edge from parent[color=blue!60,very thick]
% child[black] {node {2} edge from parent[color=black,thin]}
% child[black] {node [fill=blue!30] {3} edge from parent[color=blue!60,very thick] }
% child[black] {node {2} edge from parent[color=black,thin]}
% child[black] {node {1} edge from parent[color=black,thin]}
% }
% child {node {3}
% };
% \end{tikzpicture}
% \caption{FSI through regions.}
% \label{fig:FSI-with-region}
% \end{figure}

% \begin{istgame} 
% \setistOvalNodeStyle{.6cm}
% \istroot(0){1}+15mm..30mm+
% \istb{a} \istb{b} \endist
% \istroot(1)(0-1) \istb{c}
% \istroot(2)(0-2) \istb{c'}
% % \xtInfosetO[fill=blue!20,minimum width=\n1+3em]
%         %   (1)(2){2}(2em)
% % \xtInfosetO(0)(0)(3em)
% \end{istgame}

% \begin{istgame}
% \setistOvalNodeStyle{.6cm} \istrooto'(0){0}+{12.5mm}..{3.45cm}+
% \istb \istb \endist \xtShowEndPoints[oval node] \xtdistance{12.5mm}{11.5mm} \istrooto'(1)(0-1){1}
%   \istb{}{3}[center]  \istb{}{4}[center]
% \istb{}{5}[center] \endist \istrooto'(2)(0-2){2}
%   \istb{}{6}[center]  \istb{}{7}[center]
% \istb{}{8}[center] \endist \istrooto'(6)(2-1){6}
%   \istb{}{9}[center]  \istb{}{10}[center]
% \endist
% \end{istgame}
% \ruitodo{Work in progress for the FSI with regions}
\begin{figure}
    \centering
    \def\vdis{8mm}
    \def\hdis{9mm}
    \begin{istgame}[node distance=\vdis]
    \node(stage0) at (-2.4, 0) {\scriptsize $\ell = 0:$};
    \node(stage1)[below of=stage0] {\scriptsize $\ell = 1:$};
    \node(stage2)[below of=stage1] {\scriptsize $\ell = 2:$};
    \node(stage3)[below of=stage2] {\scriptsize $\ell = 3:$};
    \setistOvalNodeStyle{.3cm}
    \xtShowEndPoints[oval node,fill=red!20]
    \istroot(0)[oval node,fill=red!20]+\vdis..\hdis+ 
    \istb \istb \istb \istb \endist 
    \node(1-1) [circle,minimum size=.3cm,inner sep=0, draw, fill=red!20, below of=0-1] {};
    \node(1-2) [circle,minimum size=.3cm,inner sep=0, draw,fill=red!20, below of=0-2] {};
    \node(1-3) [circle,minimum size=.3cm,inner sep=0, draw,fill=red!20, below of=0-3] {};
    \node(2-1) [circle,minimum size=.3cm,inner sep=0, draw,fill=red!20, below of=1-1] {};
    \node(2-2) [circle,minimum size=.3cm,inner sep=0, draw,fill=red!20, below of=1-2] {};
    \node(2-3) [circle,minimum size=.3cm,inner sep=0, draw,fill=red!20, below of=1-3] {};
    \node(2-4) [circle,node distance=\hdis, minimum size=.3cm,inner sep=0, draw, fill=red!20, right of=2-3] {};
    \draw[line width=0.18mm] (0-1) -- (1-1);
    \draw[line width=0.18mm] (0-2) -- (1-1);
    \draw[line width=0.18mm] (0-2) -- (1-2);
    \draw[line width=0.18mm] (0-3) -- (1-3);
    \draw[line width=0.18mm] (0-4) -- (1-3);
    \draw[line width=0.18mm] (1-1) -- (2-1);
    \draw[line width=0.18mm] (1-2) -- (2-1);
    \draw[line width=0.18mm] (1-2) -- (2-3);
    \draw[line width=0.18mm] (1-3) -- (2-2);
    \draw[line width=0.18mm] (1-3) -- (2-4);
    % \setxtinfosetlayer{foreground}
    % \xtInfosetO[fill=red,opacity=.2](0)(0-1)(1.1em)
    % \xtInfosetO[fill=red,opacity=.2](0-1)(1-1)(1.1em)
    % \xtInfosetO[fill=red,opacity=.2](1-1)(2-1)(1.1em)
    % \xtInfosetO[fill=red,opacity=.2](0-2)(1-1)(1.1em)
    \begin{pgfonlayer}{background}
        \draw[rounded corners=0.2em,line width=1.2em,blue!20,cap=round]
                (0.center) -- (0-1.center) -- (1-1.center) -- (2-1.center);
    \end{pgfonlayer}
    % \setxtinfosetlayer \xtInfosetO[fill=blue!20](0-1)(0-2){2}(2em)
    \end{istgame} \quad \
    \begin{istgame}[node distance=\vdis]
    \setistOvalNodeStyle{.3cm}
    \xtShowEndPoints[oval node,fill=red!20]
    \istroot(0)[oval node,fill=red!20]+\vdis..\hdis+ 
    \istb \istb \istb \istb \endist 
    \node(1-1) [circle,minimum size=.3cm,inner sep=0, draw, fill=red!20, below of=0-1] {};
    \node(1-2) [circle,minimum size=.3cm,inner sep=0, draw,fill=red!20, below of=0-2] {};
    \node(1-3) [circle,minimum size=.3cm,inner sep=0, draw,fill=red!20, below of=0-3] {};
    \node(2-1) [circle,minimum size=.3cm,inner sep=0, draw,fill=red!20, below of=1-1] {};
    \node(2-2) [circle,minimum size=.3cm,inner sep=0, draw,fill=red!20, below of=1-2] {};
    \node(2-3) [circle,minimum size=.3cm,inner sep=0, draw,fill=red!20, below of=1-3] {};
    \node(2-4) [circle,node distance=\hdis, minimum size=.3cm,inner sep=0, draw, fill=red!20, right of=2-3] {};
    \draw[line width=0.18mm] (0-1) -- (1-1);
    \draw[line width=0.18mm] (0-2) -- (1-1);
    \draw[line width=0.18mm] (0-2) -- (1-2);
    \draw[line width=0.18mm] (0-3) -- (1-3);
    \draw[line width=0.18mm] (0-4) -- (1-3);
    \draw[line width=0.18mm] (1-1) -- (2-1);
    \draw[line width=0.18mm] (1-2) -- (2-1);
    \draw[line width=0.18mm] (1-2) -- (2-3);
    \draw[line width=0.18mm] (1-3) -- (2-2);
    \draw[line width=0.18mm] (1-3) -- (2-4);
    % \setxtinfosetlayer{foreground}
    % \xtInfosetO[fill=red,opacity=.2](0)(0-1)(1.1em)
    % \xtInfosetO[fill=red,opacity=.2](0-1)(1-1)(1.1em)
    % \xtInfosetO[fill=red,opacity=.2](1-1)(2-1)(1.1em)
    % \xtInfosetO[fill=red,opacity=.2](0-2)(1-1)(1.1em)
    \begin{pgfonlayer}{background}
        \draw[rounded corners=0.2em,line width=1.2em,blue!20,cap=round]
                (0.center) -- (0-1.center) -- (1-1.center) -- (2-1.center);
        \draw[rounded corners=0.2em,line width=1.2em,blue!20,cap=round]
            (0.center) -- (0-2.center) -- (1-2.center) -- (2-1.center);
        \draw[rounded corners=0.2em,line width=1.2em,blue!20,cap=round]
            (0-1.center) -- (0-2.center) -- (1-1.center) -- (1-2.center);
        \draw[rounded corners=0.2em,line width=1.2em,blue!20,cap=round]
            (0-1.center) -- (1-2.center);
        \draw[rounded corners=0.2em,line width=1.2em,blue!20,cap=round]
            (0-2.center) -- (2-1.center);
        \draw[rounded corners=0.2em,line width=1.2em,blue!20,cap=round]
            (0.center) -- (1-1.center); 
    \end{pgfonlayer}
    % \setxtinfosetlayer \xtInfosetO[fill=blue!20](0-1)(0-2){2}(2em)
    \end{istgame}
    \caption{FSI over regions. Sampled history (left) and the corresponding region (right).}%\marta{not sure what this is}}
    \label{fig:FSI_region}
\end{figure}

