boy troubles! I can't ditch this guy!

I'm not sure if it's because I like him a lot or if I'm not getting attention from anyone else at the moment, but I can't seem to ditch this guy. I've been casually seeing this guy for nearly six months and he treats me fine but our "relationship" (more of a friends with benefits) is starting to get boring, I can tell he's getting uninterested over text but when we are together he seems fine. I personally think he's still obsessing over his ex to be completely honest. Even though he says she's crazy. His friend told me he doesnt want a relationship like his last one, and I can tell because not long after he seems to act more like a boyfriend he ignores me for a bit, starts not replying. I think it would be better to end things now before I get too attached but I can't, I always find myself texting him again etc. what do I do?