Modified the willCollide method. No major changes to it.