t, index) => {
                const angle = (earthDays * planet.speed) % (Math.PI * 2);
                drawPlanet(planet, angle);
            });

            // Draw FPS and Earth Day counter
            ctx.fillStyle = 'rgba(0, 0, 0, 0.5)';
            ctx.fillRect(10, 10, 100, 50);
            ctx.fillStyle = 'white';
            ctx.fillText(`FPS: ${fps}`, 20, 30);
            ctx.fillText(`AVG FPS: ${fps}`, 20, 45);
            ctx.fillText(`Earth Day: ${Math.floor(earthDays)}`, 20, 60);

           