updated to work with the changes to player class