friction added to player class