public function scores(Request $request)
 {
     if (Session::has('admin_login')) {
         $scores = ScoreBoard::findOrFail($request->id);
         $scores->update($request->all());
         $this->updatePoints();
     }
     return redirect('/');
 }
 public function scores(Request $request)
 {
     $scores = ScoreBoard::findOrFail($request->id);
     $scores->update($request->all());
     return redirect('/');
 }