What To Do?? Plz Reply Quickly

I jus confessed to my boyfriend after a year that while we were broken up i had sex with someone else. He asked me about it once and i lied to him i felt so bad but then i jus went ahead and told the truth now he is really mad for me lying and what he calls “trying to move on from him too fast.” we had been together for a couple of months and had been broken up for 2 months, so i went out with my bestfriend once we broke up and had sex with him i guess thats what made him so mad now he’s asking me what i think he should do??? I know i was wrong for lying but we were broken up so i dont see why he is so mad for me doing what i did. Was I? And What would you do if you were him??

(Screen) Name: Advice_wife