Smart algorithms for gaming