Battle of Samobor: Preparation for the battle