small restructuring of eval_pieces