flood fill works

but may as well use it as the network-finding algo