Refactored the code to include a Scene Manager. Added a clock to update the horizon according to local coordinates