public static void beginLoop(){
        while(StateHandler.close == false && DisplayHandler.closed() == false){
            StateHandler.loop();
        }
        StateHandler.close();
        AudioManager.close();
        DisplayHandler.destroy();
        OutputUtility.outputLine("-Process finished with no errors-");
    }