- list<string> closestCarCop = shortestPath(to, cop_car, FindPlayer(_players, cop_car, closestCop - 1 > 0 ? closestCop : 5), true);
- //cerr << "Cop in car " << closestCarCop.size() << " intersections away." << endl;
+ if (max > 1){
+ list<string> closestCarCop = shortestPath(to, cop_car, FindPlayer(_players, cop_car, max - 1), true);
+ cerr << "Cop in car " << closestCarCop.size() << " intersections away." << endl;