[DEV] Check for close map border in door generation algorithm