update

Updates the run queue. MUST be called at the end of every loop.