src: restructured program flow to use transient 'EndScreen' and 'StartScreen'