As an addition to what OdinLin says, when you run back to the generator, click on it, and select the "Charge" option, then RUN on back to the boss.