Roughly implemented collision detection