Modified collision detection slightly