private String getStringFromColor(Color color) {
    	String string = "X";
    	int rgb = color.getRGB();
    	if (rgb == Figure.COLOR_FIGURE_I.getRGB()) {
    		string = "R";
    	} else if (rgb == Figure.COLOR_FIGURE_T.getRGB()) {
    		string = "Y";
    	} else if (rgb == Figure.COLOR_FIGURE_O.getRGB()) {
    		string = "C";
    	} else if (rgb == Figure.COLOR_FIGURE_L.getRGB()) {
    		string = "O";
    	} else if (rgb == Figure.COLOR_FIGURE_J.getRGB()) {
    		string = "M";
    	} else if (rgb == Figure.COLOR_FIGURE_S.getRGB()) {
    		string = "B";
    	} else if (rgb == Figure.COLOR_FIGURE_Z.getRGB()) {
    		string = "G";
    	}    		
    	return string;
    }