for(Move legalMove : legalMoves) {
if(legalMove.getContents() instanceof GdlConstant)
continue;
GdlFunction moveContents = (GdlFunction) legalMove.getContents();
int xCell = Integer.parseInt(moveContents.getBody().get(0).toString());
int yCell = Integer.parseInt(moveContents.getBody().get(1).toString());
int xSpot = (xCell-1)*width/3 + 2;
int ySpot = (yCell-1)*height/3 + 2;
final int BORDER_SIZE = 60;