public void move() {

            //tests if the ball is moving
        	isMoving();

            //friction factor
            xVel *= 0.97;
            yVel *= 0.97;

            //determine new coordinates
            x += xVel;
            y += yVel;

            //collision detection for field bounds
            if (x > (bounds.width - ball.width)) {
                xVel = -xVel;
                x = bounds.width - ball.width;
            }
            
            if (y > (bounds.height - ball.height)) {
                yVel = -yVel;
                y = bounds.height - ball.height;
            }
            
            if (x <= 0) {
                xVel = -xVel;
                x = 0;
            }
            
            if (y <= 0) {
                yVel = -yVel;
                y = 0;
            }
                 
            //make the ball stop earlier
            if (Math.abs(xVel) < 0.05) {xVel = 0;}
            
            if (Math.abs(yVel) < 0.05) {yVel = 0;}
        }