Sorting input for logistics to be in desired order, fixed some string printing bugs
Successors function might be working.