/**
* Stops drawing the polyline, memorizes the shapes in the history, draws
* it and sends it to other users.
*/
public void mouseReleased(Double point, int scaleX, int scaleY) {
Shape shape = new Polygon(points, color, chat.getMyJID(), isFilled);
chat.draw(shape);
points.clear();
board.setCurrentShape(null);
}