import java.awt.*; import java.util.*; public class Piece{ ArrayList legalMoves; int x,y; Image sprite; public Piece(int x, int y, Image sprite){ this.x = x; this.y = y; this.sprite = sprite; } public void draw(Graphics g){ g.drawImage(sprite,x * 40,y * 40,null); } }