Added parameters to make the rectangle shrink when over void, and removed broken scale(shrink) function.