Finds shortest path from start node to target node in 8 directions