public void move(){
        Point pnt = getCenter();
        double dX = pnt.x ;
        double dY = pnt.y ;
        if(bPause)
        {
            nCount=nCount+1;
            if(nCount>=100)
            {
                bPause=false;
                nCount=0;
            }
        }
        else
        {
            if(nCount++>1)
            {
                dX = pnt.x + getDeltaX();
                dY = pnt.y + getDeltaY();
                nCount=0;
            }
        }


        //this just keeps the sprite inside the bounds of the frame
        if (pnt.x > (getDim().width-getRadius())) {
            setCenter(new Point(getRadius(), pnt.y));

        } else if (pnt.x < getRadius()) {
            setCenter(new Point(getDim().width - getRadius(), pnt.y));
        } else if (pnt.y > getDim().height) {
            setCenter(new Point(pnt.x, 1));

        }
        else {

            setCenter(new Point((int) dX, (int) dY));
        }
		
		//an asteroid spins, so you need to adjust the orientation at each move()
	//	setOrientation(getOrientation() + getSpin());
		
	}