the car detects a deer closeby in the dark of the night and slows down to a speed that allows for sudden brake , calculating for the chance that the deer would run across the street from its current location .