Added NUM_SPHERES constant