}
if (p instanceof TNT) {// for instance of TNT
TNT tnt = (TNT) p;
TNTRectangle tntRect = tnt.getRectangle();
g.drawImage(tntRect.getImage(), tntRect.xCoord(),
tntRect.yCoord(), null);
}
}
for (PlayerTank p : tankList) {
TankRectangle tRect = p.getRectangle();