Made the collision detection slightly better.