Made main logic for finding needed robots