Corrected frictional force implementation and fixed UI bug.