public static Block[][] loadLevelBackground(Level level, int index, String key){
		try{
			String path = "res/world"+index+"/level/"+key+".lev";
			Properties prop = new Properties();
			InputStream in = new FileInputStream(path);
			prop.loadFromXML(in);
			int maxX = Integer.parseInt(prop.getProperty("maxValueX"));
			int maxY = Integer.parseInt(prop.getProperty("maxValueY"));
			level.maxCoords = new Point(maxX, maxY);
			Block[][] blocks = new Block[maxX][maxY];
			for(int x = 0; x < maxX; x++){
				for(int y = 0; y < maxY; y++){
					String props = prop.getProperty("bgblock"+x+" "+y);
					if(props != null){
						Class cl = Class.forName("com.revereor.game.world.level.block."+props);
						Constructor con = cl.getConstructor(Level.class);
						Block block = (Block) con.newInstance(level);
						block.setIndex(x, y);
						block.setBackground(true);
						blocks[x][y] = block;
					}
				}
			}
			in.close();
			return blocks;
		} catch(Exception e){
			e.printStackTrace();
		}
		return null;
	}