Implemented First collision detection and behavior