A logic board will run you $500 from ifixit.com and your time to put it in, and you still won't have a warranty.
Probably not a bad price vs the cost of a new Mac computer if you plan to keep it, but you should at least get a comprehensive diagnoses first, before spending any more of your money.