Added encapsulation

Added encapsulation and fields for part of the MainFrame JPanel classes