adding friction to collision loop