Some weird results but found a neat way to get things done
It works ! I'm now going to try to combine the root searching again now that I get what I should be doing