Iterator it = path.iterator();
int len = path.getLength() + 1;
int x[] = new int[len];
int y[] = new int[len];
int ct = 0;
BlockadeMove m = null;
float offset = 0;
while (it.hasNext()) {
m = (BlockadeMove)it.next();
offset = (m.isPlayer1() ? PLAYER1_PATH_OFFSET : PLAYER2_PATH_OFFSET) ;
x[ct] = calcPosition(m.getFromCol(), offset, cellSize);
y[ct] = calcPosition(m.getFromRow(), offset, cellSize);
ct++;
}
if (m != null) {
x[ct] = calcPosition(m.getToCol(), offset, cellSize);
y[ct] = calcPosition(m.getToRow(), offset, cellSize);
ct++;
g2.drawPolyline(x, y , ct);
int diameter = (int)(cellSize * POINT_WIDTH_RATIO);
int radius = diameter / 2;
for (int i=0; i < ct; i++) {