Changed 'pieces' to 'need_pieces'