Cramping is caused by a combination of muscle exhaustion and dehydration. In addition to Bear's stretching suggestions (which you should do on days you don't play as well) you need to hydrate. Prehydrate before games with water and some electrolytes if you can (like a banana), during the game...