added function to identify separate landmasses