In 1806 who did Gorkas defeat with the help of provincial chiefs