i had to jump ahead in the tutorials to figure out how to load the file but definitely should have learnt the rest.
My code basically had to process each number for each path and then adjust its path using a binary path from the bottom up which seemed like a terrible approach and once i got it working it showed because it was taking forever to calculate.
something like 2.7 ^126 possible paths and the binary switching number would overload well before it got there so i tried a different approach by looking back over the pathing methods on red blob games but couldn't come up with a solution with what i know.
All in all though it was to to see how not to do it.
and props to the people who got it.
Spoiler: