Ha! And I originally wrote this code in 2016, still tweaking it 9 years later. I recall ‘gotoLoop’ popping up often when I needed help back then. Thanks!
I’ve now moved on to Unity supplemented by Python for data wrangling, so it always does my head in when I have to maintain some Processing code. Still an amazing language though and has got me (and many others) into media art.