Updated function for accepting bids