how to buy a house before yours is sold