Added thread safety to AgentsController.
Changed the drawing function to more accurately represent program modes.
Fine tuned the drawing function.
Added a separate port for music debug mode.