Refactored code to make it more readable and maintainable.

In retry mode, the app will now check if the Steam process has exited and attempt to re-locate it.
Fixes #2