Pick a spin, then press a box to drop that electron in. The model checks Pauli and Hund after every press, counts the unpaired spins, and tells you what a magnet would do.
More unpaired spins mean a stronger pull. With every electron paired the sample is pushed away very weakly instead.
Two electrons in one box repel each other. Keeping them in separate boxes with matching spins costs less energy, so nature does that first.