package de.pigeont.bowlinggame;

import de.pigeont.bowlinggame.config.Configuration;

import java.util.logging.Level;
import java.util.logging.Logger;


public final class Bowling {
    private Bowling() {
    }


    public static void main(String[] args) {
        Configuration.init();
        Logger logger = Configuration.logger;
        logger.log(Level.INFO, "game started");

        try {
            GameStarter.createNewGame();

        } catch (Exception e) {
            logger.log(Level.SEVERE, "Exception: game terminated unexcepted");
            logger.log(Level.FINE, e.getMessage());
            System.exit(ReturnValue.FAILURE.getReturnCode());
        }
        System.exit(ReturnValue.SUCCESS.getReturnCode());
    }

    enum ReturnValue {
        SUCCESS(0),
        FAILURE(1);

        private int returnCode;

        private ReturnValue(int returnCode) {
            this.returnCode = returnCode;
        }

        public int getReturnCode() {
            return returnCode;
        }
    }
}
@@ -541,16 +541,19 @@
 xcepted%22
+, e
 );%0A     
@@ -675,65 +675,8 @@
   %7D%0A
-        System.exit(ReturnValue.SUCCESS.getReturnCode());
 %0A   

build main game loop structure