Game Loop Pattern

deterministic update function