add object collision detection