An apple store can diagnose if it is just a battery issue. I would take it there first, as their diagnosis is free. Its worth replacing the battery, but not replacing the logic board.
open