public void run() {
		while (!currentStreet.isExit()) {
			//System.out.println(path);
			if (!path.isEmpty() && path.getFirst().isMax() && currentStreet.getEnd().numStreets() > 1) {
				//System.out.println(currentStreet.getEnd().numStreets());
				computeShortestPath(currentStreet.getEnd(), path.getFirst());
				Main.record(printPath(path));
				//System.out.println(exitDirection.getIntName());
			}
			else if (!path.isEmpty() && path.getFirst().isMax()) {
				//printPath(path);
			}
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) { System.out.println("FAIL"); }
		}
	}