Comparing potential energy of objects in different positions