this was followed by a war with sweden that had inconclusive results