Unlocking Patterns: How Math Shapes Our Modern Games