If you have a reversing DC motor, you cannot add a simple flyback diode across the motor terminals.
You can add a MOV or a Bidirectional transorb across the motor terminals.
You can see in circuit D3 the reversing DC motor with its flyback diodes installed, i.e. 4 diodes.
Your DPDT switch N.O./N.C. will replace the A and B contacts in the circuit.
If electronics are involved, then use a small bridge rectifier.
Connect the two AC terminals to the motor, and the + and - terminals to +supply and ground.
Leo..