 i = 0; i < 6; i++) {
                const angle = (Math.PI / 3) * i + hexagon.rotation;
                vertices.push({
                    x: centerX + hexagon.radius * Math.cos(angle),
                    y: centerY + hexagon.radius * Math.sin(angle)
                });
            }
            return vertices;
        }
        
        // Check collision and handle bounce
        function checkCollision() {
            const vertices = getHexagonVertices();
            
            for (let i = 0; i 