addition problem was re-using an assoc array rather than creating a simple array of allowed subtraction pairs