Fix calculation of distance between clients

This fixes move by direction