added EPSILON tolerance to collision checking