improved collision detection
added new file