I was quite intrigued that the original accepted offer was actually accepted with a contingency of sale. As this is a bank owned property it is not normal practice for a lender to accept an offer that has a contingency of sale in it.
At any rate, looks like that was good for you, best of luck!