Is there any way to pick a right direction in research while solving a problem?
Short version: no.

Long version: absolutely no. Having experience in the field helps (and experienced people are those that have already taken lots of wrong directions in their life), but ultimately encountering road blocks is a part of research. It happens all the time. You take lots of wrong directions, you waste time. 

What you read in the papers is the road that works and gives the best and shortest solution to the problem, but the people who wrote them typically have also tried several approaches that didn't work, or were a lot more cumbersome.

If it is already clear from the beginning what will work, it's not research anymore, it's just an exercise. :)