ok, but you use PVector and array
and i used PVector and ArrayList,
you used line
i used curve ( Vertex )
and i structured code little bit with functions,
BUT i NOT used class…
so i not understand your point.
anyhow you might just run the code to understand it better