How to read map for A*

Hey guys, i’m back to work on my pacman game…I’m trying to implement a star pathfinding for the ghosts to follow the player…I’m using Tiled to load a map…I’ve got a separate layer for blocked tiles and i’m loading that layer to an array of blocked tiles…


	for (int y = 0;y < blockedLayer.getHeight();y++ ) {
			for (int x = 0; x < blockedLayer.getWidth();x++) {
							
				//Set blocked tiles
				if (blockedLayer.getCell(x,y)!=null) {
				Rectangle tempRect = new Rectangle(x*16,y*16,16,16);
				blockedTiles.add(tempRect);
				
				if (blockedLayer.getCell(x, y)==null) continue;
				
				}

I’m trying to figure out how to get the blocked and non-blocked tiles together so I can start with the a*