I dug into the science behind why it's so hard to form good habits. Turns out gamified apps can help, but they come with a big downside.