private void generateLabyrinth(Node2 node) {
		node.visit();
		int x = node.getX();
		int y = node.getY();
		ArrayList<Node2> surroundingNodes = new ArrayList<Node2>();
		if (x > 0) surroundingNodes.add(nodeNetwork[x-1][y]);
		if (y > 0) surroundingNodes.add(nodeNetwork[x][y-1]);
		if (x < width - 1) surroundingNodes.add(nodeNetwork[x+1][y]);
		if (y < height - 1) surroundingNodes.add(nodeNetwork[x][y+1]);
		Collections.shuffle(surroundingNodes);
		for (Node2 nextNode : surroundingNodes) {
			if (!nextNode.getVisited()) {
				node.addChild(nextNode);
				nextNode.addChild(node);
				generateLabyrinth(nextNode);
			}
		}
	}