implemented a function to determine peers for a client, however this exposed a bug, Issue #3, with the server loop, in listen_for_clients