add taken pieces and sort them