Refactor pendulum simulation: implement lazy loading for Pendulum component, add drawing utilities, and enhance world generation logic