Changed the collision calculation so it became less wrong.