What lead to the defeat of the Hanseatic League