Injury Back of Knee

I was playing volleyball and I thought I pulled a muscle behind my knee but it hasn't healed yet. Any advice on how to heal it? It's a bit swollen compared to my other knee.
It's difficult for me to extend my leg straight but running is fine(?)