Remove redundant definition of collisionDetect