added logic to reconcile accounts when a challenge ends.