All the blacks go together, and the reds and blue go together. You can remove the cover from the mag, where those wire go, and snip off the white wire right at the coil. it's not needed and doesn't do anything meaningful.
With the cover off, it gives you an opportunity to inspect inside for ground up metal or metal dust and mag and coil, alignment.