what counts as cheating?

I feel really guilty cause I have a boyfriend but me and my bestfriend slept together (we hugged the whole time) we fell asleep in eachother a arms... In the morning he told me he wanted to date me :/ i told him I had a boyfriend, he just nodded and left. I don't know if it counts as cheating??? Plz help!