I got a 2D array (loaded from a csv) that I have displayed into a listbox but I need the button I made to be able to move the food items and update the 2d array so the user can see the updated list in the list box - How do I go on about this?
What I have tried:
Array is as follows:
Apple,Free,Orange,Free
Pear,Free,Free,Free
Walnut,Edamame,Free,Free
Basically, the "Free" are the spots where user can move the food then if the slot is already taken, the system will throw an error saying "Invalid Move"