Added GUI and moved main method to the GUI class