void finishGame()
    {
        System.out.println("1. Continue game.");
        System.out.println("2. Finish game.");
        try
        {
            int decision = sc.nextInt();
            switch(decision)
            {
                case 1:
                    continued = true;
                    game();
                    break;
                case 2:
                    continued = false;
                    break;
                default: finishGame();
                    break;

            }
        }
        catch (InputMismatchException f)
        {
            System.out.println("Try again!");
            finishGame();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }