Beginning of collisions implementstion