\begin{tikzpicture}[
squarednode/.style={rectangle, draw=black!20, fill=white!5, very thick, minimum size=1cm},
    squarednodeG/.style={rectangle, draw=black!20, fill=green!20, very thick, minimum size=1cm},
    squarednodeY/.style={rectangle, draw=black!20, fill=yellow!20, very thick, minimum size=1cm},
    ]
    
    \node[squarednode] at (0.5,0.5) (int) {1};
    \node[squarednode] at (1.5,0.5) (int) {2};
    \node[squarednode] at (2*1.75,0.5) (int) {4};
    \node[squarednode] at (2*2.25,0.5) (int) {5};
    \node[squarednode] at (2*2.75,0.5) (int) {7};
    \node[squarednode] at (0.5,1.5) (int) {6};
    \node[squarednode] at (1.5,1.5) (int) {8};
    \node[squarednode] at (2.5,0.5) (int) {3};
    \draw[] (0,0) -- (6,0)--(6,1)-- (2,1)--(2,2)--(0,2)--cycle;
    
    \node[squarednode] at (2*4.25,0.5) (int) {1};
    \node[squarednode] at (2*4.75,0.5) (int) {2};
    \node[squarednode] at (2*5.75,0.5) (int) {4};
    \node[squarednode] at (2*6.25,0.5) (int) {6};
    \node[squarednode] at (2*6.75,0.5) (int) {8};
    \node[squarednode] at (2*4.25,1.5) (int) {5};
    \node[squarednode] at (2*4.75,1.5) (int) {7};
    \node[squarednode] at (2*5.25,0.5) (int) {3};
    \draw[] (8,0)-- (14,0)-- (14,1)-- (10,1)--(10,2)--(8,2)--cycle
    ;
    \node[squarednode] at (2*8.25,0.5) (int) {1};
    \node[squarednode] at (2*8.75,0.5) (int) {2};
    \node[squarednode] at (2*9.75,0.5) (int) {5};
    \node[squarednode] at (2*10.25,0.5) (int) {7};
    \node[squarednode] at (2*10.75,0.5) (int) {8};
    \node[squarednode] at (2*8.25,1.5) (int) {4};
    \node[squarednode] at (2*8.75,1.5) (int) {6};
    \node[squarednode] at (2*9.25,0.5) (int) {3};
    \draw[] (16,0)--(22,0)--(22,1)--(18,1)--(18,2)--(16,2)--cycle;
    
    \node[squarednode] at (2*12.25,0.5) (int) {1};
    \node[squarednode] at (2*12.75,0.5) (int) {2};
    \node[squarednode] at (2*13.75,0.5) (int) {6};
    \node[squarednode] at (2*14.25,0.5) (int) {7};
    \node[squarednode] at (2*14.75,0.5) (int) {8};
    \node[squarednode] at (2*12.25,1.5) (int) {3};
    \node[squarednode] at (2*12.75,1.5) (int) {5};
    \node[squarednode] at (2*13.25,0.5) (int) {4};
    \draw[] (24,0)--(30,0)--(30,1)--(26,1)--(26,2)--(24,2)--cycle;
    
    \end{tikzpicture}