I hope all worked out for you.
I do want to clarify for future reference that you can, indeed, put a contingency in that requires that your home must sell first before moving forward on your offer. Most folks will accept that offer with that contingency. However, in the state of Tennessee all offers must be presented until the final signature at closing and the seller can accept another offer and you leave you sitting there, still waiting to sell your home.
But I hope that you are able to sell your home and purchase that one. That would be great!