The dungeon has 7 different routes to the end. There is always just 1 path that won't trigger a trap when you walk on it, but it's randomised which path it is each time you get back to the start. The clock near the entrance tells you which path is available and in which direction it is.