\begin{tikzpicture}[
    squarednode/.style={rectangle, draw=black!20, fill=white!5, very thick, minimum size=5mm},
    squarednodeG/.style={rectangle, draw=black!20, fill=green!20, very thick, minimum size=5mm},
    squarednodeY/.style={rectangle, draw=black!20, fill=yellow!20, very thick, minimum size=5mm},
    ]
    
    \node[squarednodeY] at (0.25,0.25) (int) {1};
    \node[squarednodeY] at (0.75,0.25) (int) {2};
    \node[squarednodeG] at (1.25,0.25) (int) {3};
    \node[squarednodeG] at (1.75,0.25) (int) {4};
    \node[squarednodeG] at (2.25,0.25) (int) {6};
    \node[squarednodeG] at (2.75,0.25) (int) {8};
    \node[squarednode] at (0.25,0.75) (int) {5};
    \node[squarednode] at (0.75,0.75) (int) {7};
    \node[squarednode] at (1.25,0.75) (int) {9};
    \draw[very thick] (0,0)--(3,0)--(3,0.5)--(0,0.5)--cycle;
    
    \node[squarednodeG] at (4.25,0.25) (int) {1};
    \node[squarednodeG] at (4.75,0.25) (int) {2};
    \node[squarednodeG] at (5.25,0.25) (int) {3};
    \node[squarednodeG] at (5.75,0.25) (int) {4};
    \node[squarednodeG] at (6.25,0.25) (int) {6};
    \node[squarednode] at (6.75,0.25) (int) {8};
    \node[squarednodeG] at (4.25,0.75) (int) {5};
    \node[squarednode] at (4.75,0.75) (int) {7};
    \node[squarednode] at (5.25,0.75) (int) {9};
    \draw[very thick] (4,0)--(6.5,0)--(6.5,0.5)--(4.5,0.5)--(4.5,1)--(4,1)--cycle;
    
    \node[squarednodeG] at (8.25,0.25) (int) {1};
    \node[squarednodeY] at (8.75,0.25) (int) {2};
    \node[squarednodeG] at (9.25,0.25) (int) {3};
    \node[squarednodeG] at (9.75,0.25) (int) {4};
    \node[squarednode] at (10.25,0.25) (int) {6};
    \node[squarednode] at (10.75,0.25) (int) {8};
    \node[squarednodeG] at (8.25,0.75) (int) {5};
    \node[squarednodeG] at (8.75,0.75) (int) {7};
    \node[squarednode] at (9.25,0.75) (int) {9};
    \draw[very thick] (8,0)--(10,0)--(10,0.5)--(9,0.5)--(9,1)--(8,1)--cycle;
    
    \node[squarednodeY] at (12.25,0.25) (int) {1};
    \node[squarednodeY] at (12.75,0.25) (int) {2};
    \node[squarednodeY] at (13.25,0.25) (int) {3};
    \node[squarednode] at (13.75,0.25) (int) {4};
    \node[squarednode] at (14.25,0.25) (int) {6};
    \node[squarednode] at (14.75,0.25) (int) {8};
    \node[squarednodeG] at (12.25,0.75) (int) {5};
    \node[squarednodeG] at (12.75,0.75) (int) {7};
    \node[squarednodeG] at (13.25,0.75) (int) {9};
    \draw[very thick] (12,0)--(13.5,0)--(13.5,1)--(12,1)--cycle;
    
    \end{tikzpicture}