Implementing acceptOffer()