Changed all coords + distances from int to doubles