Code for scoring quartets and doubles is working