Funny thing - I'm surprised I didn't pass it just by brute force, as the resulting number is the "shortest path" - e.g. not missing a single step, and I already figured I need to use the battery at the bottom. Lol!