\documentclass{standalone}

\usepackage{tikz}
\usepackage{shapes}

\begin{document}
\begin{tikzpicture}
  \ttsquare{black}{(2,1)}
  \ttsquare{black}{(2,15)}

  \foreach\i in {0,...,8}{
    \ttsquare{teal}{(0,2*\i)}
    \ttsquare{teal}{(4,2*\i)}
  }
  \ttsquare{teal}{(2,0)}
  \ttsquare{teal}{(2,16)}
  \foreach\i in {1,...,6}{
    \ttsquare{green}{(2,2*\i+1)}
  }

\end{tikzpicture}
\end{document}
