Lots of interconnected pieces. You said you found out the cause of your hamstring pain, what and how did you determine what it was? Skating isn't a real balanced activity and can affect muscle groups in various ways. There can be a causal chain and finding the root cause of something can be a process. Definitely starting with the basics mentioned in this thread would be good, strength, flexibility, and mobility. You can focus on the areas you are having trouble with but should it should be a whole-body process. Foam rollers and lacrosse or tennis ball rolling are great rehab/prehab activities. It can be tear-inducing but worth it.
Also, you said you are working out. What are you doing? What does your week look like between practices, games, and additional workouts?
Lots to consider.
16? Wait until your are in your 40s or 50s, stuff hurts and the only reason is you are in your 40s or 50s!!!