If the seller refuses to refund the earnest money deposit - get in touch with a lawyer immediately. You will have to initiate the right dispute resolution method described in your contract.