How to move an object across a game board. Multiple Objects

Hello! I am an extreme beginner in the field of P5.JS. I am way more knowledgeable in Java which will be apparent in my broken code. I have attempted a multitude of Java approaches to cycling through objects of the same class and applying methods to them.

https://openprocessing.org/sketch/1564721

This is the link to the code I am attempting to fix it currently, but if you have any tips or advice for streamlining this please let me know.