Ported proper floodfill to 3D. Closes #90 @1h.