Understanding the Core Mechanics of Generic Wagering Systems