Update checkCollision logic.