Collisiondetection working (almost)