public void reactToLight(Light.LightStatus lightStatus, double currentTime){

		calcCurrentState(currentTime);

		P.p("Current position: "+position);

		P.p("Reacting to lightStatus: " + lightStatus);
		switch(lightStatus){
		case GREEN:
			P.p("lightStatus is green");
			if(saved != null && !saved.exited) {
				ahead = saved;
				ahead.changeState(currentTime);
			} else {
				ahead = null;
				changeState(currentTime);
			}
			// create event for accelerating
			//			changeState(currentTime);
			break;
		case YELLOW:
			P.p("lightStatus is yellow");
			// calculate when it will need to start decelerating
			//			processSpeed(Metrics.WALK_LEFT, 0, currentTime);

			saved = ahead;
			ahead = Crosswalk.stopped;
			changeState(currentTime);

			//			if(behind != null) 
			//				behind.changeState(currentTime);
			break;
		default:
			break;
		}
	}