@Override
	public Map convertMap(pplgg.Map myMap) {
		Tile[][] newMap = new Tile[myMap.getWidth()][myMap.getHeight()];
		List<Tile> keys = new ArrayList<Tile>();

		for (int x = 0; x < myMap.getWidth(); x++) {
			for (int y = 0; y < myMap.getHeight(); y++) {

				int type = myMap.getTerrain(x, y);

				if (type == 0) {
					newMap[x][y] = new Tile(type, false, x, y);
				} else if(type == 5){
					Tile t = new Tile(type, false, x, y);
					newMap[x][y] = t;
					keys.add(t);
				} else {
					newMap[x][y] = new Tile(type, true, x, y);
				}
			}

		}

		return new Map(newMap, keys);
	}