Map stretching is driving me crazy!

In my pacman clone, i’m trying to add an area at the top to show score and lives. When I change cfg.height in main.java to make the window bigger to make room for this, it just stretches the tiled map and throws everything off. My pacman and objects rendered to the screen using spritebatch stay in the same location it seems, but the actual map stretches to fit the whole window. How can I stop this?

in my Map.java


public Map(OrthographicCamera camera) {
		float unitScale = 1/16f;
		
		tiledMap = new TmxMapLoader().load("data/pactest.tmx");
		
		blockedLayer = (TiledMapTileLayer) tiledMap.getLayers().get(1);
		pillLayer = (TiledMapTileLayer) tiledMap.getLayers().get(2);
		
		renderer = new OrthogonalTiledMapRenderer(tiledMap, unitScale);
		
		renderer.setView(camera);

In my myGame.java


public void create() {		
		
		
		batch = new SpriteBatch();
		camera = new OrthographicCamera(480,496);
		camera.viewportHeight = 496;
		camera.viewportWidth = 480;
		
		camera.setToOrtho(false, 30, 31);
		camera.update();
		
		map = new Map(camera);
		player = new player(32,30);
		player.setX(32);
		player.setY(30);
		
		
		
		
		

It has to have something to do with the OrthogonalTiledMapRenderer as it’s only the tiles doing this…I’ve been trying to do this for a few days as well as searched everything I could…