found bug maybe, wasn't breaking when routes_left == 0