Some changes in the cards#index method. Now the logic is in the controller and we have the min stockvalue cardfor each type in the view