public void initMaze(Start start, End end, List<Obstacle> obstacleList) {

		initBorderMaze();
		bufferedImage.setRGB(start.getX() + 1, start.getY() + 1, Color.RED.getRGB());
		bufferedImage.setRGB(end.getX() + 1, end.getY() + 1, Color.RED.getRGB());

		for (Obstacle obstacle : obstacleList) {
			for (int x = obstacle.getTopleftx(); x < obstacle.getBottomrightx() + 1; x++) {
				for (int y = obstacle.getToplefty(); y < obstacle
						.getBottomrighty() + 1; y++) {
					bufferedImage.setRGB(x + 1, y + 1, Color.BLACK.getRGB());
				}
			}
		}

	}