function to check if a corridor can be created

still a WIP