public static void main(String[] Args) {

        actions.setUpDisplay(); // Creates the window and sets the parameters in setUP;
        actions.setUpVariables();
        while (actions.run) {
            try {
                actions.movement();
                actions.shoot();
                actions.repaint();
                actions.spawnEnemies();
                actions.moveEnemeies();
                actions.enemyShoot();
                actions.detectCollision();

                Thread.sleep(8);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }

    }