Called whenever a players tries to undo.
Here's a trick you can do to achieve the behavior of this function on the client.