Fixed distance calculations

Now properly calculate distances to travel from system to system.