Added UI’s implementation (first shot).
Fixing it up!
Refactoring is good.
Changed the semantic of treatEvents; now, it returns (True,_) if the application has to go on, (False,_) if not. We’ll be using Maybe later.