Would be difficult to solve, but wish if the line formed any enclosed shape that the spell would activate. Basically not requiring the player to return to the exact same spot, but allowing any knot shape to work. It would just reduce the precision needed to cast a spell.
Nice work making shape size = spell power though.