Drones with Artificial Intelligence to improve autonomous flight in closed spaces