collision detection initial commit