Had that happen to me once playing badminton years ago,I was out of commission for a few months.My niece whom is an expert player told me it was caused by cheap court shoes(I was wearing everyday runners).She told me that your feet sweat when playing and your foot will move around in shoes not meant for twisting and turning,like racquet sports require .I bought a dedicated shoe for court and never had that problem again.