Function useMultiplayerService