Work in progress, the idea is that it finds all the possible actions of a obstacle then clicks the nearest obstacle but after testing on multiple agility courses it needs some more tinkering.