when adding boxes, choose one with highest value