Having a starting point and a end goal isn’t enough. You need to work on your path, that is, your method.
If ever tried to answer a problem you didn’t keep writing it down the same way. You keep modifying the method with your knowledge and experience to make the best out of it.
Each step is different from the previous and subsequent one. You may turn out to be wrong but that doesn’t mean your end goal was wrong. It’s just that your method was lacking something or had too much of something else.
It’s the race to find the element that is overpowering your confidence in the goal. We fail only when we give up. Trying is good, but persisting is a key. And persisting while learning from your failure just adds to your success.