public void Reject() { if (offer != OfferType.Resign) throw new InvalidOperationException("Cannot reject when there's no resign offer."); offer = OfferType.None; player_on_turn = 1 - player_on_turn; }