This is a grid system I will potentially use in a later project Press 1 to use purple Press 2 to use red Click to place Hold 0, hover over the tile you want to delete then click.
I used this video: https://www.youtube.com/watch?v=t4B8pLdsOhA to make this grid system. The grid used pen to stamp but I changed and added some code to use clones and deleting as well has the show and hide.