The Mechanics of Slot Machines: How the Magic Happens