DUDE, nothing wrong with your motherboard or battery I believe.
But its your power jack endpoint and the Female power port in your laptop needs to be checked if it fits tight and stays connected. I believe the Power port needs to be checked by a technician or get yourself a another suitable...