Try finding the most optimal path! Even when I had 5 spells, there would sometimes be a path which allowed me to hit all of the spells, triggering all of the effects! It might also help to get a good build. (by any chance, I beat this game on the first try ;-;)