add checkCollision