Fragment B - Friction Score Update Working

Cleaned some code and fixed null pointer exception error.