\input{makecube.tex}

\begin{tikzpicture}
      \draw[red,decorate,decoration={snake},-stealth,thick] (-2.5,1) -- (0,1);
      \node[anchor=south west, inner sep=0] at (-2,0) {\cube{1}{2}{red}};
      \node[anchor=south west, inner sep=0] at (-1,0) {\cube{2}{2}{yellow}};
      \node[anchor=south west, inner sep=0] at (1,0) {\cube{1}{2}{green}};
      \node[anchor=north east] at (-1,0) {P};
      \node[anchor=north ] at (0,0) {I};
      \node[anchor=north west] at (2,0) {N};
    \end{tikzpicture}
