Removing redundant Cpu class, making EventDispatcher private in Mainframe