implemented event handling for a pedestrian when signal changing events occur