islands check, without recursion steps

Signed-off-by: aLekSer <gdocse@gmail.com>