Remade gameloop, and update can be dynamic to time now