Refactored affected class to Singleton Pattern

Affected classes: `Parser`, `MenuInterface`, `Logic`.