Made a change in CollisionManager so that it knows how to handle a null direction.