added gui panels, added a pause function, but as there is no keyActivated method it can't be used comfortably