I then check while the screen is not touched if elements are those in any recipe, and if they are, I check if they are colliding. If so, I delete both and make a new sprite with the resulting element type.