collision detection attempt1