doCollision is implemented