Click and drag the pieces across the board. Captured pieces go to the left side, If you want a pawn to become a queen just use a captured piece or go into the code and clone another piece.
I used my brain.