Joining Logic with Graphics through a GUI class.