Yuri II Ryazansky, in Polish Civil War