public Map(String res) {
		tileList = new ArrayList<Tile>();
		try {
			map = new TiledMap(res);

			for (int i = 0; i < map.getHeight() - 1; i++) {
				for (int j = 0; j < map.getWidth() - 1; j++) {
					TileType type = null;
					if (map.getTileId(j, i, 0) == 1) {
						type = TileType.WALL;
					}

					if (map.getTileId(j, i, 0) == 2) {
						type = TileType.FLOOR;
					}
					
					if (type != null) {
						tileList.add(new Tile(type, j * map.getTileWidth(), i
								* map.getTileWidth(), map.getTileWidth(), map
								.getTileHeight()));
					}
				}
			}

		} catch (SlickException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}