Unify game loop