Glitchy Glitch

Hmm, got a glitch that I’m not quite sure how to solve. I know what’s causing it — hearts are getting drawn too often when I only want them to draw when they lock to the grid… but the numbers don’t always match up, so I end up with the opposite problem. Also — potatoes!

1421        potato2