added threshold for speed increase/decrease ai cars according to distance to player