Nothing is calling this code
It’s also way too much code, you only need a handful of nodes to get it working.
Sorry, it’s very hard to troubleshoot this from a distance.