added drawPieces()