Reimplimented collision detection.