James became ________ King of England and Wales and ________ King managed to unite the three countries peacefully in the end.