Though a straight line is the shortest distance, it may not be feasible. No end can justify a foolish means. Usually, it is better to simply go around.
Starting all over may not be required. Sometimes, merely stepping to the side is sufficient. Then, you can keep moving forward towards your destination.
If you feel like banging your head against a wall, stop and think. Your skull will crack long before it will. Instead, use your brains to find a real solution.
It is easy to be discouraged when you lose your way. Remember it is not gone, only misplaced. Once it is found, then you can proceed with confidence.
Do not let the chaos around get within. What is vitally important is to remain calm. An agitated spirit tends to spend a lot of time just bumping into trees.