Tuning the Interactions of Magnetic Molecules on a Superconductor