Magnetic Newton's cradle

Simulating a Newton’s cradle with magnetic interactions, and how long-range forces break the clean transfer of energy.