Trying to stop the egg from spinning is an excellent application of the principle of momentum. The raw egg keeps spinning after you touch it briefly because the liquid egg inside remains in motion, it's inertia is greater than that of the solid interior of the hardboiled egg.