a simple game loop that iterates over a collection of updateable objects, updating them with the amount of time that has passed since the last update