public Alpha() {
        setLayout(null);
        setSize(Shell.DEFAULT_WINDOWSIZEX, Shell.DEFAULT_WINDOWSIZEY);
        setBackground(Color.BLACK);
        setVisible(true);
        setDoubleBuffered(true);
        addMouseListener(this);
        addMouseWheelListener(this);
        addMouseMotionListener(this);
        key();

        objects.add(new BASE(50,0, 1, objects, lasers));
        selected=objects.get(0);
        selection=5;
        user = new User();
        enem= new Enemy(objects,lasers);

        for(int x=0;x<numberOfAsteroids;x++){
            int sizerandom=0;
            int spawnx=0;
            int spawny=0;
            do{
                sizerandom=(int)(Math.random()*100)+20;
                spawnx=(int)(Math.random()*(mapsize+mapsize/4));
                spawny=(int)(Math.random()*(mapsize+mapsize/2))-mapsize/4-mapsize/2;
            } while(collisionCircle(spawnx,spawny,sizerandom/2,50,0,User.basefield/2));
            objects.add(new Asteroid(spawnx, spawny, sizerandom, sizerandom, objects, lasers));
        }

        for(int x=0;x<10000;x++){ //1000 stars
            //randomly spawns stars
            starX.add((int)(Math.random()*mapsize*4)-mapsize);
            starY.add((int)(Math.random()*mapsize*4)-mapsize*2);
        }

        startGame=System.nanoTime();
        startPause=System.nanoTime();

    }