Hint 1
You might think that this puzzle is impossible, but rest assured, it's not.
The first thing you should try to do is connect any pair of blocks. That'll limit where your next path can go. B's route is the shortest. Try enough times and you're sure to work it out.

