A train was racing towards the intersection amid the beeping of the light.