Added methods for labyrinth validation