Understanding the odds: How casino games work mathematically