Combined all the GUI classes into a single class and got jpanel
switching working