setting game paused when application goes to background