\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 (4) at (0, 0) {$4$};
	\node (1) at (7, 0) {$1$};
	\node (2) at (27, 0) {$2$};
	\node (5) at (35, 0) {$5$};
	\node (3) at (37, 0) {$3$};

	\draw[double=white,draw=green] (3) -- (37, 4) -- (23, 4) -- (23, -11) -- (47, -11) -- (47, 19) -- (6, 19) -- (6, -1) -- (8, -1) -- (8, 15) -- (45, 15) -- (45, -8) -- (25, -8) -- (25, 2) -- (29, 2) -- (29, -4) -- (41, -4) -- (41, 9) -- (19, 9) -- (19, -5) -- (0, -5) -- (4);
	\draw[double=white,draw=blue] (5) -- (35, -1) -- (38, -1) -- (38, 5) -- (22, 5) -- (22, -12) -- (48, -12) -- (48, 21) -- (5, 21) -- (5, -2) -- (9, -2) -- (9, 13) -- (44, 13) -- (44, -7) -- (26, -7) -- (26, 1) -- (28, 1) -- (28, -5) -- (42, -5) -- (42, 10) -- (18, 10) -- (18, -4) -- (3, -4) -- (3, 23) -- (57, 23) -- (57, -15) -- (20, -15) -- (20, 7) -- (40, 7) -- (40, -3) -- (32, -3) -- (32, 3) -- (24, 3) -- (24, -10) -- (46, -10) -- (46, 17) -- (7, 17) -- (1);
	\draw[double=white,draw=red] (2) -- (27, -6) -- (43, -6) -- (43, 12) -- (17, 12) -- (17, -3) -- (4, -3) -- (4, 22) -- (56, 22) -- (56, -13) -- (21, -13) -- (21, 6) -- (39, 6) -- (39, -2) -- (33, -2) -- (33, 1) -- (36, 1) -- (36, 0) -- (3);
	\draw[double=blue] (4) -- (0, 3) -- (12, 3) -- (12, -16) -- (50, -16) -- (50, 8) -- (30, 8) -- (30, -1) -- (16, -1) -- (16, 14) -- (52, 14) -- (52, -18) -- (10, -18) -- (10, 1) -- (2, 1) -- (2, -20) -- (54, -20) -- (54, 18) -- (14, 18) -- (14, -9) -- (34, -9) -- (34, 0) -- (5);
	\draw[double=red] (1) -- (7, -19) -- (53, -19) -- (53, 16) -- (15, 16) -- (15, -2) -- (31, -2) -- (31, 2) -- (49, 2) -- (49, -14) -- (13, -14) -- (13, 20) -- (55, 20) -- (55, -21) -- (1, -21) -- (1, 2) -- (11, 2) -- (11, -17) -- (51, -17) -- (51, 11) -- (27, 11) -- (2);
\end{tikzpicture}
\end{document}