public void loadMap(String s) {

		System.out.println("CLASSPATH = " + s);

		try {

			final InputStream in = getClass().getResourceAsStream(s);
			final BufferedReader br = new BufferedReader(new InputStreamReader(in));

			mapXRows = Integer.parseInt(br.readLine());
			mapYRows = Integer.parseInt(br.readLine());
			map = new int[mapYRows][mapXRows];
			mapWidth = mapXRows * tileSize;
			mapHeight = mapYRows * tileSize;

			xColMin = GamePanel.WIDTH - mapWidth;
			xColMax = 0;
			yColMin = GamePanel.HEIGHT - mapHeight;
			yColMax = 0;

			// reading the actual numbers from the map
			final String delims = "\\s+";
			for (int row = 0; row < mapYRows; row++) {
				final String line = br.readLine();
				final String[] tokens = line.split(delims);
				for (int col = 0; col < mapXRows; col++)
					map[row][col] = Integer.parseInt(tokens[col]);
			}
		} catch (final Exception e) {
			e.printStackTrace();
		}
	}