No... the complexity wasn't high...
It was the monsters that jumped as soon as I entered the darkness was causing me lot trouble during those tries which took two tries to understand...
the algo right now is that if you stay out of the light for 2 seconds they surround you and you have to fight with them