public void update() {
            x += dx;
            while(x <= -width) x += width;
            while(x >= width) x -= width;
            y += dy;
            while(y <= -height) y += height;
            while(y >= height) y -= height;
    }