Update to ShortestPath class - had incorrect condition for IF statement that will always return false