Hello @ffernandaffranco ,
Welcome to the forum!
Please read:
Do you have permission to post your academic work publicly?
https://discourse.processing.org/faq#homework
Please try and reduce your code to a small runnable example.
It may help to isolate the issue.
This will also focus on the one issue without the need to post the entire code.
What is the output from this?
:)