Implemented my understanding of has collided (collision warning)