Implemented a fake undo for engines which does not support it natively.