The torches are along a path that he follows, but it's not always clear which direction the path is pointing. Wish we had more time to change that! Yep, the line of sight calculations took a lot.
Of the 15 submissions I've tested so far, yours is the best. The game has potential, just needs few more mechanics (flipping levers to open/close gates/pits etc.)