Hello @GalA ,
Welcome aboard!
Please format your code as a courtesy to the community:
https://discourse.processing.org/faq#format-your-code
Please only post an MCVE:
- How to create a Minimal, Reproducible Example - Help Center - Stack Overflow
- Guidelines—Asking Questions
I will test this out once you simplify and format it and I can copy it without errors.
:)