added tolerances to some collision detection comparisons