public void run() {	
		while (!stop) {
			Random generator = new Random();
			double pty = generator.nextDouble();
			
			// declare an emergency
			if (!getIsEmergency() && pty < .02){
				this.setEmergency();
				currentStreet.ambulanceAlert();
				currentStreet.moveVehicleToFront(this);
			}
			//System.out.println(path);
			if (!path.isEmpty() && path.getFirst().isMax() && currentStreet.getEnd().numStreets() > 1 && !getIsEmergency()) {
				computeShortestPath(currentStreet.getEnd(), path.getFirst());
				Main.record(printPath(path));
				//System.out.println(exitDirection.getIntName());
			}
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) { System.out.println("FAIL"); }
		}
	}