Longest Road Algorithm: Please Review

Next thing is checking win condition which should be easy. Then on to
writing a really simple AI. Then I can help with GUI stuff.