public static boolean isEntryAdjacent(Tile[][] map) {
		
		boolean isAdjacent = false;
		
		// initialize some member variables 
		if(!initFlag)
			init(map);
		
		if (exitX != 0) // check if not on the left edge
			if(map[exitX - 1][exitY].getTileType() == TileMap.ENTRANCE)
				isAdjacent = true;
		
		if (exitY != 0) // check if not on the top edge
			if(map[exitX][exitY - 1].getTileType() == TileMap.ENTRANCE)
				isAdjacent = true;
		
		if(exitX != width - 1) // check if not on the right edge
			if(map[exitX + 1][exitY].getTileType() == TileMap.ENTRANCE)
				isAdjacent = true;
		
		if(exitY != height - 1) // check if not on the bottom edge
			if(map[exitX][exitY + 1].getTileType() == TileMap.ENTRANCE)
				isAdjacent = true;		
		
		return isAdjacent;
	}