This works, but is not very robust -- you have to already know that a Pokemon is dead when you call this, and it only takes care of the output. (Would anything stop the "fainted" Pokemon from continuing to fight?) It would be more robust to check for fainting every time a Pokemon is dealt damage, and possible keep an internal state `Pokemon.fainted` to check before every attack.