fixed initializePanels method so that it actually initializes the JPanels