Modified Data Preparation - Added player stats function