adding update(dt) and render() functions. Called from tick().
onTabChanged now calls into update()
non-active tab will still allow chats to be added to the simulation.  Each new addition will move the simulation forward.  No rendering is done when tab is not the active one.