/**
  * Initialiser
  *
  * @return Response
  */
 public function init()
 {
     //set number of frames per game
     $data['frames'] = 10;
     //get list of past games
     $games = DB::table('games')->get();
     $data['games'] = $games;
     //check user is logged in
     try {
         if (!Session::get('usr')) {
             $usr = Twitter::get('account/verify_credentials');
             Session::put('usr', $usr);
         }
         $data['usr'] = Session::get('usr');
     } catch (Exception $e) {
         //not logged in
     }
     return view('main', $data);
 }