updated findGoalPieces method