\begin{tikzpicture}[square/.style={regular polygon,regular polygon sides=4}]
	\onslide<1->{   \foreach \i in {1,...,16}
		{
              
			\pgfmathtruncatemacro{\label}{\i};
			\node[square,draw=red!50,fill=orange!10,thick,minimum size=.2mm] (\label) at (-1*\i*0.5+1.2,-3) {};
		}
		%\end{axis}
         
		\draw [
			thick,
			decoration={
				brace,
				raise=0.5cm
			},
			decorate
		] (1) -- (16) 
		node [pos=0.5,anchor=south,yshift=-1.1cm] {16}; 
         
         
		\node[square,draw=blue!50,fill=blue!10,thick,minimum size=1mm] (11a) at (-5.5,-1.5) {};
         
		\foreach \i in {16,15,12,11}
		{
			\draw [-,thick,draw=orange] (\i) -- (11a);
		}
         
		\node[square,draw=blue!50,fill=blue!10,thick,minimum size=1mm] (12a) at (-0.5,-1.5) {};
		\foreach \i in {1,2,5,6}
		{
			\draw [-,thick,draw=magenta] (\i) -- (12a);
		}   
         
	}
	\onslide<3->
	{
         
		\foreach \i in {1,2,5,6}
		{
			\draw [-,thick,draw=orange] (\i) -- (12a);
		}
	}
    
	\onslide<7->
	{   
		\node[square,draw=blue!50,fill=blue!10,thick,minimum size=1mm] (11ab) at (-5.5+1,-1.5+0.5) {};
         
		\node[square,draw=blue!50,fill=blue!10,thick,minimum size=1mm] (12ab) at (-0.5+1,-1.5+0.5) {};
         
         
         
		\foreach \i in {16,15,12,11}
		{
			\draw [-,thick,draw=green,dashed] (\i) -- (11ab);
		}
		\foreach \i in {1,2,5,6}
		{
			\draw [-,thick,draw=green,dashed] (\i) -- (12ab);
		}
         
         
         
         
	}
    
	\onslide<8->{
         
		\node[square,draw=blue!50,fill=blue!10,thick,minimum size=1mm] (abc11) at (-5.5-1,-1.5+0.5) {};
         
		\node[square,draw=blue!50,fill=blue!10,thick,minimum size=1mm] (abc12) at (-0.5-1,-1.5+0.5) {};
         
		\foreach \i in {16,15,12,11}
		{
			\draw [-,thick,draw=magenta,dashed] (\i) -- (abc11);
		}
		\foreach \i in {1,2,5,6}
		{
			\draw [-,thick,draw=magenta,dashed] (\i) -- (abc12);
		}
	}
	%%%%%%%%%%%%5
    
\end{tikzpicture}