Working correctly. Need to generate path working backwards from the end
point. Add in a graceful exit for when the end is reached inside the
while.