Updated the XML loader.
And added support for the window to remember it last size and position when exiting.

The game will no crash during runtime.