ipt>
// Load the data from the JSON file
    document.getElementById('leaderboardButton').addEventListener('click', function() {
        window.location.href = 'leaderboard.html';
    });
    document.getElementById('dmStatsButton').addEventListener('click', function() {
        window.location.href = 'dm_stats.html';
    });

   

    let center = { x: 0, y: 0 };

    function updateCenter() {
        const svg = d3.select('#network').node();
        const width = svg.clientWidth || svg.parentNode.clientWi