3D Rotations

Adding code to do 3D rotations. Also made the magnets be drawn as a red
sphere and a blue sphere to indicate north and south poles