compression of replays for sending them to the server