Sorry, I forgot to remove a local variable that is not needed, as originally I was gonna put everything under "on Tile clicked" by using Local Variables but after I switched to functions and I forgot to remove that variable.
I updated my last link.
Thank you, you've done a lot for me.