private void loadLevel(String path, int level) throws IOException {
		ArrayList<String> lines = new ArrayList<String>();
		int width = 7;
		int height = 0;

		BufferedReader reader = new BufferedReader(new FileReader(path + "level" + level + ".txt"));
		while (true) {
			String line = reader.readLine();
			// no more lines to read
			if (line == null) {
				reader.close();
				break;
			}

			if (!line.startsWith("!")) {
				lines.add(line);
			}
		}
		height = lines.size();

		for (int j = 0; j < height; j++) {
			String line = (String) lines.get(j);
			for (int i = 0; i < width; i++) {
				if (i < line.length()) {
					if (Character.getNumericValue(line.charAt(i)) != 0) {
						char ch = line.charAt(i);
						if (ch == 'M') {
							Brick b = new Brick(25 + i * 52, 40 + j * 20, -1);
							brickArray.add(b);
						} else {
							Brick b = new Brick(25 + i * 52, 40 + j * 20,
									Character.getNumericValue(ch));
							brickArray.add(b);
						}
					}
				}
			}
		}

	}