[JOB] Collide algorithm. Got the idea, but not working at this moment