getFigureName returns the figures name and the handle to the figure class
[name, handle_chess_figure] = getFigureName(fig)
The figures name and its handle is returned.
Inputs:
Outputs:
The command [name, handle_chess_figure] = getFigureName('K') returns the figures name King and the handle to its class @King.