Added vital functions and added relevant debug

sendOfferpacket, waitForRequestPacket