collision detection in less comparisions
collision detection w less comparisions