My daughter has an 11" macbook air that she uses exclusively for playing minecraft. For the last week or so the machine has begun randomly powering off. It only happens when the charging cord is attached. When she detatches the power cord and then reattaches it, the machine powers back up without her touching any keys. Charging and function then continues normally until it powers down again. Sometimes it happens several times in an hour. Other days it doesn't happen more than once or twice. I don't even know what to begin looking for problem-wise. Please help! Thank you!!