crude form of checking intersection done