breakup

so, my boyfriend of six months broke up with me last night. i lied to him about something really stupid, so i don’t blame him. when i went to his house to get my stuff, we both cried and held each other. then one thing led to another and we agreed to still sleep together, but only sleep with each other. does that mean there is a chance of us fixing things, or should i just try to go ahead and start moving on? he’s my absolute best friend and i want to try my hardest to fix things with us, but i don’t want to waste my time and end up more hurt. i just don’t know what to do.