public static Figure getFigure(int figureId) {
    	Figure figure = null;
    	switch (figureId) {
    		case Figure.FIGURE_ID_I:
    			figure = new FigureI();
    			break;
    		case Figure.FIGURE_ID_T:
    			figure = new FigureT();
    			break;
    		case Figure.FIGURE_ID_O:
    			figure = new FigureO();
    			break;
    		case Figure.FIGURE_ID_L:
    			figure = new FigureL();
    			break;
    		case Figure.FIGURE_ID_J:
    			figure = new FigureJ();
    			break;
    		case Figure.FIGURE_ID_S:
    			figure = new FigureS();
    			break;
    		case Figure.FIGURE_ID_Z:
    			figure = new FigureZ();
    			break;
    		default:
    			figure = null;
    			break;
    	}
    	return figure;
    }