Broke up fillBoxesToMaxCapacity into smaller methods
Refactored fillBoxesToMaxCapacity