The insects make better decisions collectively than when on their own