rewriting game