The mathematics behind casino games: Understanding house edge