You're attempting to solve the labyrinth. You do that by exploring. Looking down dark corridors, inside chests and poking your head into holes in the wall can yield secrets that help solve the maze, or it can lead to a fight. (Winning fights also counts towards solving the maze)