LightSequence shouldn’t be calling itself ( as in your diagram ).
You need to make the functions pure:
Keep me posted…