There are two ways that you could approach turning a pawn into a
queen.  One would be to have the pawn change its behavior, displaying
a "Q" and allowing the same moves as a queen.  Another approach would
be to simply replace the pawn on the board with a newly created queen.
For that option, you might want ChessBoard's method
replacePiece().