implemented ports and the beginnings of longest road detection