Implemented a flood-fill to exclude inaccessible places from attempts to be pathed to.