I cheated on my boyfriend of 3 years

My boyfriend is in the U.S. Navy. We were amazing until he got out of bootcamp. Things in our relationship completely changed. It felt like I was alone and just texting a person ever so often. I would need him and he couldn’t be there for me ( which isn’t his fault ) but he would be done with what he was doing and I’m busy too and we’d have time to talk but he’d go to the gym instead. Basically our relationship has been going downhill. He said I sometimes look fat.. he told me I was going to do nothing with mylife and was going to stay in this town I live in my entire life.. which hurt. I would never in a million years think I was going to hear that from him. He really hurt me. That kick started most all those feelings getting lost. He came to town and we couldn’t really hang out much , I had work and when I didn’t know we’d hang out a little. I was happy he was here. I love him so much. While he was here , I needed him. I almost took my life and I asked him if he could meet me somewhere so I could feel okay. I was all alone where I was . ( he was 10 minutes away ) I tell him where I’m at and I thought he’d be there . I’m still texting him and I’m telling him what’s going on and I’m still waiting. 20 minutes go by and I thought he was driving to see me. He wasn’t. He was home. I waited for him an hour for him to never come . Even though he knew I needed him. That broke my heart. I asked him whenever he could if he could be there for me when I needed it because I was having a rough time and he told me he can’t make any promises because he’s busy. For the last month and a half ( or more ) we have no been together. I’ve been trying to love myself and be better. But we were trying to work it out at the same time. .. well last night I did something stupid. There’s this guy at work and he’s pretty cute. I dont like him but I think he’s just cute. Well we snapchatted yesterday and we stayed talking for 4 hours .. we were talking about sex and porn . We did not talk about fucking each other. But we just talked about us and our relationship with sex and hormones and stuff. I dont know why but I told my boyfriend ( aka ex ) and he’s so hurt man. And I feel hurt too bc I love him and I hate that I hurt him but I know my feelings for him have faded. The fucked up thing is the same night I was texting the boy from work is the day me and my boyfriend talked about making a plan for our future and I did that. Why would I do that???? I mean a part of me feels free. Like I feel ok but then the other part feels like I’m making a huge mistake. Please someone give me advice.