Further improvements of the settings.

Added auto size for main window. Added tooltips in settings. Fixed a bug
that crashed the game when field size was empty in settings.