public void render(Graphics2D g2d) {
        g2d.drawImage(image, (int) x, (int) y, null);
        if (x < 0) g2d.drawImage(image, (int) x + Game.WIDTH, (int) y, null);
        else if (x > 0) g2d.drawImage(image, (int) x - Game.WIDTH, (int) y, null);
    }