Go into the classifieds section and ask around for a used engine for this car. It may be the only way to economically revive this car.
I suppose there was no warranty. If you feel like you were misled somehow by the dealer, take it back and see if there is sufficient goodwill to adjust the deal, or have them help you find a used engine for installation. Oftentimes dealers are willing to try to make good a fright pig like this car in order to avoid ill will.
Be firm and adamant about your demands, and make it clear that you are not just a crank and will be happy if they try to help.
Sorry about your situation.