fixed the moment centroid point problem. Only print when numObject <
Maxobject.DO the moment on the largest Object