Added collision detection for globs.