Improved Manager main loop and scene transition