cleaned up logic in cost_beam_checker
bias -> beam, plus reordered beam check clauses