I started making a grid puzzle game that includes a grid with randomly placed white and grey squares.
And there is a black empty square somewhere in the middle.
I want to be able to move this black square one position to its left, right, top or bottom and interchange positions with the square it moved to.
I am unable to move forward on how to have the mousePressed() conditions with the code I have. I want to build upon the existing code. I could really use some help.