move method

fixed bug where the distance between two objects is 0