Added finalCostIsInBt() function to check final cost matches