Exploring the mathematics behind winning strategies in casino games