} else if (figure.getType().equals("pawn")) {
img.tag = new ElasticFunction();
} else if (figure.getType().equals("queen")) {
img.tag = new ExpFunction(4);
} else if (figure.getType().equals("rook")) {
img.tag = new LineareFunction();
} else {
img.tag = new ElasticFunction();
}
}