I want to create a randomly generated world by taking these pieces and when they are created they search the areas that are open in each piece and then build if there's nothing there then the process repeats. I'm having some issues with pieces not spawning at all and I cannot find the issue at all. Also if anyone has a better way to do this that would be great!
I'm not sure what you are trying to achieve, but using an array might be easier to do and keep track of. here is a good place to start if you haven't already seen. https://www.scirra.com/tutorials/360/generating-a-random-tile-map
Arrays don't seem to be what i am looking for, and California are you referring to the plugin for construct classic? that was really all i could find regarding the mazes. Its actually exactly what I'm looking for but unfortunately cannot be used :/