private void assignToGroups()
    {
        clear();
        try
        {
            int counter = teammgr.showCount();
            int maxId = teammgr.maxTeamId();

            if (counter > 0)
            {
                int tm = teammgr.getById(maxId).getGroupId();
                if (tm == 0)
                {

                    System.out.println("CAUTION!");
                    System.out.println("If continuing with assigning groups, it wont be "
                            + "possible to add teams or assign groups again!");
                    System.out.println("Do you want to continue? Y/N");

                    Scanner sc = new Scanner(System.in, "iso-8859-1");
                    String further = sc.nextLine();

                    switch (further)
                    {
                        case "Y":
                            assignGroups(counter);
                            break;
                        case "y":
                            assignGroups(counter);
                            break;
                        case "N":
                            System.out.println("You have selected no.");
                            break;
                        case "n":
                            System.out.println("You have selected no.");
                            break;
                        default:
                            System.out.println("Y or N Required");
                            break;
                    }
                }
                else
                {
                    System.out.println("Groups have already been assigned!");
                }
            }
            else
            {
                System.out.println("You need teams to assign groups");
            }
        }
        catch (Exception e)
        {
            System.out.println("ERROR - " + e.getLocalizedMessage());
        }
        pause();
    }