function getAddGame(CouchService $cs)
 {
     $providersPaths = \App\Services\WargameService::getProviders();
     $dir = \Input::get('dir', false);
     if ($dir) {
         foreach ($providersPaths as $path) {
             $infoPath = "{$path}/{$dir}/info.json";
             if (file_exists($infoPath)) {
                 $info = json_decode(file_get_contents($infoPath));
                 $this->addGame($cs, $info);
             }
         }
         return redirect('admin/games');
     }
     return view('admin.addGame');
 }