the civil war had tested the country and its king , making it stronger and more prepared for the future than ever before , turning it from an isolated , medieval power into a power in prime position to dominate the world .