public int[][][] toIntArray() {
		int set[][][] = new int[tiles.length][tiles[0].length][tiles[0][0].length];
		for (int x = 0; x < tiles.length; x++) {
			for (int y = 0; y < tiles[0].length; y++) {
				for (int l = 0; l < LAYERS; l++) {
					if (tiles[x][y][l] != null) {
						set[x][y][l] = tiles[x][y][l].number;
					} else {
						set[x][y][l] = 0;
					}
				}
			}
		}
		return set;
	}