I can swap two tiles, however, when I need to shuffle them, I need each tile to have a unique position. I've tried setting up array's for the x and y position of both the tiles to be swapped checking against the randomly generated number to make sure it's position hasn't been taken already but as you could probably tell that was super uneffective.
How would I go about swapping two tiles which haven't already been swapped.