added code comments to player class