makes searchingRestaurant function