Fixed the pause function and updated credits background