Move the candies to collide with candies with numbers smaller than it and avoid colliding with candies with numbers higher than it.