\documentclass{standalone}
\usepackage[paperwidth=\maxdimen,paperheight=\maxdimen]{geometry}
\usepackage{pgf,tikz}
\begin{document}

\begin{tikzpicture}[x=24pt, y=24pt, draw=white, double=black, line width=2.1pt]
	\node (1) at (0, 0) {$1$};
	\node (5) at (5, 0) {$5$};
	\node (2) at (9, 0) {$2$};
	\node (6) at (14, 0) {$6$};
	\node (4) at (16, 0) {$4$};
	\node (3) at (27, 0) {$3$};

	\draw[double=white,draw=green] (2) -- (9, 7) -- (22, 7) -- (22, -2) -- (31, -2) -- (31, 12) -- (1, 12) -- (1, -9) -- (20, -9) -- (20, 5) -- (11, 5) -- (11, -1) -- (15, -1) -- (15, 1) -- (17, 1) -- (17, -6) -- (3, -6) -- (3, 10) -- (27, 10) -- (3);
	\draw[double=white,draw=blue] (6) -- (14, 3) -- (18, 3) -- (18, -7) -- (2, -7) -- (2, 11) -- (30, 11) -- (30, -1) -- (26, -1) -- (26, 9) -- (7, 9) -- (7, -1) -- (10, -1) -- (10, 6) -- (21, 6) -- (21, -11) -- (0, -11) -- (1);
	\draw[double=white,draw=red] (4) -- (16, -4) -- (5, -4) -- (5);
	\draw[double=green] (3) -- (27, -10) -- (8, -10) -- (8, 8) -- (23, 8) -- (23, -3) -- (13, -3) -- (13, 2) -- (16, 2) -- (4);
	\draw[double=blue] (5) -- (4, 0) -- (4, -13) -- (29, -13) -- (29, 2) -- (24, 2) -- (24, -5) -- (12, -5) -- (12, 4) -- (19, 4) -- (19, -2) -- (14, -2) -- (6);
	\draw[double=red] (1) -- (0, 1) -- (6, 1) -- (6, -12) -- (28, -12) -- (28, 1) -- (25, 1) -- (25, -8) -- (9, -8) -- (2);
\end{tikzpicture}
\end{document}