Next time you are stuck on a hard problem where there are many possible solutions to test, try a greedy approach.
First break the problem into several stages. At each stage make a step in the right direction and see how far you can get. Each step is guided by a heuristic: an educated guess or rule of thumb. It might not lead to the perfect solution but it will be good enough.