Fixed the bug with one-colour areas, but there is another bug with false boundary points.