sounds like you might now need a lawyer to deal with the realtor who it sounds like misled you.
but you may be in luck, it seems real estate market is hotter than its been in long time, you might just be able to turn it over real quick and get your $$$$$ back.
ive learned the hard way in life to check things out, I had a realtor tell me a bunch of stories but fortunately I put in writing on the contract before I signed it that if certain conditions are not such and such, contract to be null and void.
for me it had to do with internet availability and if anyone else had any type of rights on the property. turned out the property owner had given permission for an adjoining property owner to build driveway across property I was wanting to buy in any fashion they desire.