Why was the Republic of Novogorod doing so poorly?