labyrinth checking in debug mode