added more functionality for building a labrynth