changed code for leaf detection in island gen