Quoted from snyper2099:Furthermore, the diode is what blocks that grounding from affecting other coils in that same circuit.
The purpose of the diode is to prevent voltage spikes, which occur when ground is removed from the coil, from damaging the driver circuitry.