public static Obstacle[][] readConfCsv(int n){
		String path = "conf/confLevel"+ n +".csv";		
		Obstacle[][] obs = new Obstacle[Obstacle.confLines][];
		
		InputStreamReader isReader= new InputStreamReader(Obstacle.class.getClassLoader().getResourceAsStream(path));
		try (BufferedReader reader = new BufferedReader(isReader)) {
		    String line = null;
		    int j = 0;	// y coord
		    while ((line = reader.readLine()) != null) {	// Reading the file line by line
				ArrayList<Obstacle> tmpObsList = new ArrayList<Obstacle>();	// creates an arrayList to contain the elements
				String[] split = line.split(";");
		    	for (int i = 0; i<split.length; ++i){	// i = x coord
		    		int x = i*genObstacle.getWidth();
		    		int y = j*genObstacle.getHeight();
		    		Obstacle tmpObs = new Obstacle(split[i],x,y);
		    		tmpObsList.add(tmpObs);
		    	}
		    	obs[j] = tmpObsList.toArray(new Obstacle[tmpObsList.size()]);	// transform the arrayList into an array
		    	++j;
		    }
		} catch (IOException x) {
		    System.err.format("IOException: %s%n", x);
		}
		return obs;
	}