for a project I am working on I want to edit an arraylist with my custom Dot objects and pass it into a recursive method, but only the recursive call has the edited arraylis