     // Update physics
        function updatePhysics() {
            // Apply gravity
            ball.velocityY += gravity;
            
            // Apply friction
            ball.velocityX *= (1 - friction);
            ball.velocityY *= (1 - friction);
            
            // Update position
            ball.x += ball.velocityX;
            ball.y += ball.velocityY;
            
            // Rotate hexagon
            hexagon.rotation += rotationSpeed;
            if (hexagon.rotation > Math.P