❔ N puzzle game Im getting a random color everytime I slide the puzzle
Hey! Im creating a n puzzle game and im almost done however im stuck at something. Everytime I move my blankspace to sort the numbers I get a random color and when I move it again I get a new color which I dont want. I want it to randomize the colors once then it should be the same colors all the time. Here's my code: https://pastebin.com/rdzRtejU
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.