Changed the calculation of distance to use floating point player positions