drawPieces functional