Without reviewing your contract it's hard to say. I suspect you can get it back. But I support you in your decision to walk away...don't buy someone else's problems, even if it means losing your earnest money.
Buying a Home? Don't Let Them Make a Monkey Out of You! Follow the link below.
Exclusive Buyer Broker
Best selling author of Buying a Home: Don't Let Them Make a Monkey Out of You!