public void display() {
		for (int i = 0; i < width; i++) {
			// draw the north edge
			for (int j = 0; j < length; j++) {
				System.out.print((maze[j][i] & 1) == 0 ? "[][]" : "[]  ");
			}
			System.out.println("[]");
			// draw the west edge
			for (int j = 0; j < length; j++) {
				System.out.print((maze[j][i] & 8) == 0 ? "[]  " : "    ");
			}
			System.out.println("[]");
		}
		// draw the bottom line
		for (int j = 0; j < length; j++) {
			System.out.print("[][]");
		}
		System.out.println("[]");
	}