Everything is simple! You needed to upgrade your skills and not go to the boss with a starting sword. An excellent sword is crafted at the blacksmith.