public void keyPressed2(KeyEvent w) {
        int code = w.getKeyCode();
        if (code == KeyEvent.VK_SPACE) {
            if (I == 0) { //Looking Left
                if (nS == 1) {
                    x = X;
                    y = Y;
                    stop = false;
                    shoot = true;
                    nLeft = 1;
                    k = 2;
                    dx = -bSpeed;
                    nCount2 = 1;
                    nCount = 2;
                    if (nCount2 == 1) {
                        nStahp2 += x;
                        nS = 2;

                    }
                }
            }
            if (I == 1) { // Looking Right
                if (nS == 1) {
                    x = X;
                    y = Y;
                    stop = false;
                    shoot = true;
                    nRight = 1;
                    k = 1;
                    dx = bSpeed;
                    nCount = nS;
                    nCount2 = 2;
                    if (nCount == 1) {
                        nStahp += x;
                        nS = 2;
                    }
                }
            }
        }

    }