public Coins(int x, int y) {
        //sets coin images to a variable
        visible = true;
        coin = new ImageIcon(Player.PATHWAY+ "2D Fighter Quade Folder (Sprites and Shit)\\Random Game Things\\Coin.gif").getImage();
        this.x = x;
        this.y = y;
        width = coin.getWidth(null);
        height = coin.getHeight(null);
    }