                                       with: .reliable)
             }
             catch let error {
-                NSLog("%@", "Error for sending: \(error)")
+                print("%@", "Error for sending: \(error)")
             }
         }
     }

    
    func browser(_ browser: MCNearbyServiceBrowser,
                 lostPeer peerID: MCPeerID) {
        NSLog("%@", "lostPeer: \(peerID)")
    }
}


    func session(_ session: MCSession,
                 peer peerID: MCPeerID,
                 didChange state: MCSessionState) {
        print("%@", "peer \(peerID) didChangeState: \(state)")
        self.delegate?.connectedDevicesChanged(manager: self,
                                               connectedDevices: session.connectedPeers.map{$0.displayName})
    }
