How depression and addiction occur together