adding magnetic field to energy

done bottom row, rest is analogous, do tomorrow