Tried to do https://en.wikipedia.org/wiki/Connected-component_labeling
but it didn’t work as i didnt add floodfill or recursive neighbor checking..
Video:
https://www.youtube.com/watch?v=JNJhdNYm8pc
Script from the video:
https://gist.github.com/unitycoder/518188714ab8a29a0c6ca312e71fc0a3
