Okay so I might be underthinking it, but if thanos just wants to make sure everyone has enough food to eat why doesn't he just use the gauntlet to...
Grow food