Use of two-pass connected component labeling to improve zone rebuilding

Signed-off-by: SkyMarshal <skymarshal1729@gmail.com>
Fixed a minor derp.