public ViewResult Game(Game game)
 {
     if (game.ActualGame.GameId == 1)
     {
         game = new FourInARow(game.ActualGame);
     }
     return View(game);
 }
        public RedirectToRouteResult StartGame(Game game, int gameID ,string returnUrl)
        {
            GameBase gameb = repository.Games.FirstOrDefault(p => p.GameId == gameID);

            game.StartGame(gameb);

            return RedirectToAction("Game", game);
        }
        public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
        {
            Game game = null;
            if (controllerContext.HttpContext.Session != null)
            {
                game = (Game)controllerContext.HttpContext.Session[sessionKey];
            }
                if (game == null)
            {

                game = new Game();
                if (controllerContext.HttpContext.Session != null)
                {
                    controllerContext.HttpContext.Session[sessionKey] = game;
                }
            }

            return game;
        }