What's going on with him?

3 months ago a new guy came to my i class and also he joined my friendgroup at school. Me and him slowly started to become friends, sometimes we went somewhere together after school, to study etc. Also we always like pushed each other for fun, or he also hugged me a few times (mostly bc he was thankful that I helped him with a test or he was just happy that he passed a test) and now after the weekend he basically stopped talking to me (he speaked to me maybe twice over the past two days) and I don't understand, maybe I did something wrong?
What's going on with him?
Post Opinion