public void move()
    {        
        // Controls wrap around in the x-axis
        if (x >= fWidth)
        {
            double temp =  middleX - x;
            x = -1 * image.getWidth(null);
            middleX = x + temp;
        }
        else if (x <= -image.getWidth(null))
        {
            double temp = middleX - x;
            x = fWidth;
            middleX = x + temp;
        }
        // Controls wrap around in the y-axis
        if (y >= fHeight) //Right side of screen
        {
            double temp = middleY - y;
            y = -1 * image.getHeight(null);
            middleY = y + temp;
        }
        else if (y <= -image.getHeight(null)) //Left side of screen
        {
            double temp = middleY - y;
            y = fHeight;
            middleY = y + temp;
        }
        
        // Update the x,y values to actually move the bullet object
        x += xVelocity;
        y += yVelocity;
        
        //Update the midde x,y coordinates of the object that shoots the bullets.
        middleX += xVelocity;
        middleY += yVelocity;
        
        
        // Calculates the distance traveled for each time the bullet moves.
        double dX = Math.abs(xVelocity);
        double dY = Math.abs(yVelocity);
        
        distance += Math.sqrt((dX * dX) + (dY * dY));
    }