Refactoring started for game flow, to allow different game modes and level changes. NOT finished.