Refactored MainUI class, followed MVC model - added UITerminalHandler to be the middleware between the UI(MainUI) and the Logic(ProgramExecutor). Extracted the Server class to its own.