Understanding How Slot Machines Work