Added collision detected, but it doesn't work yet.