Implemented a GUI button for Pausing