Playing with generating minimal paths
Somewhat inefficient way of implementing path generation
Slow calculation so far