Defending Prisoner

This mob is a mage. Disappears behind the city. He is surrounded by 4 burning torches that protect him. The torches must be put out before it can be hurt. The 4 torches are a logic puzzle. Write them down! Clicking a torch will toggle one to two other torches. Clicking an unlit torch lights it. Your goal is to get them all to go out! Which torch does what changes each time you start this quest. Good luck.
see solution example video