public static void main(String[] args) {
        System.out.println("nr of frames: ");
        Scanner scanner = new Scanner(System.in);
        int frames = scanner.nextInt();
        Bowling bowling = new Bowling();
        Roll currentRoll = new RollBuilder().createRoll();
        for (int i = 1; i <= frames; i++) {
            int[] rolls = new int[2];
            for (int j = 0; j < 2; j++) {
                System.out.println("Frame " + i + ", roll " + (j + 1) + ": ");
                rolls[j] = scanner.nextInt();
                if (rolls[j]==Roll.STRIKE_SCORE && j == 0) {
                    System.out.println("Strike!");
                    break;
                }
            }
            RollBuilder rollBuilder = new RollBuilder().setFirst(rolls[0]).setSecond(rolls[1]);
            if (i == frames) {
                if (currentRoll.hasBonus()) {
                    System.out.println("Bonus throw:");
                    rollBuilder.setBonus(scanner.nextInt());
                }
                if (currentRoll.hasStrikeBonus()) {
                    System.out.println("Strike bonus throw:");
                    rollBuilder.setStrikeBonus(scanner.nextInt());
                }
            }
            currentRoll = rollBuilder.createRoll();
            bowling.roll(currentRoll);
            System.out.println("Current score: "+bowling.result);
        }
        
        System.out.println("Final result: "+bowling.result);
    }