Fix bug in game over dialog

Dialog attempted to attach to activity when the timer ran out even if the activity didn't have focus