I need some advice

2 weeks ago, my bf broke up with me. He did not contact me at all during that period. Yesterday, I planned to go to dinner with a few coworkers and go see beauty and the beast afterwards. Well Friday morning before I went to work, my ex was in the family room waiting for my mom to return. He wanted to talk with her about something. Before I left, he stated that it's a shame for us to have been together for almost 6 years and how I have screwed things up by going out with my coworkers and how he doesn't trust me. He wanted to talk more about things when I got off from work. I told him my plans for the day and that I did not expect him to be here so I will be home late ( I work 11-7 and movie started at 930) I told him I was going to the movie by myself, but I really went with a few other co workers. Man oh man he got so upset. Once I got home, the first the he asks me was did his d**** taste good. He went on and on and I asked him to leave. He ended up staying the night and he slept on my floor. This morning he barely speaks to me and keeps making smart remarks. I just don't know what to do.