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