public function update(Request $req, JsonResponse $res, $id)
 {
     $type = $req->json('data.type');
     $attrs = $this->getAttrsFromRequest($req);
     $game = $this->gameScore->find($id);
     $game->fill($attrs);
     $game->save();
     return new JsonResponse(['data' => $this->serializeGameScore($game)]);
 }