Preparing Peer2Peer.java to work with PeerThreads