changed coordinates.sameAs to generic equals(Object other)