Allow visibility change to toggle pause in game