pool finder algorithm working

As far as I can tell at least.