public void intArrayToLevel(int[][] array) {
		if(array.length < 1 || array[0].length < 1) return;
		if(array.length != width || array[0].length != height) {
			width = array.length;
			height = array[0].length;
			tiles = new Tile[width][height];
		}
		width = array.length;
		height = array[0].length;
		for (int y = 0; y < height; y++) {
			for (int x = 0; x < width; x++) {
				setTile(x, y, array[y][x]);
			}
		}
	}