implement level serialization for sending to players