Thanks for your query.Based on the facts that you have posted it appears that you have sustained injury
to your genitals while playing.
The pain that you have in penis while passing urine is most likely to be due to trivial injury to your penis resulting in to inflammation of urethra
Please take broad spectrum antibiotics along with anti inflammatory medication like Diclofenac
twice daily .
Get the prescription of medicines from your family Physician.
Ensure to drink more water.To keep your urine dilute This will help to control dysuria