I am creating a puzzle with moveable pieces (Panels I've called "Tiles"). The setup for this is complete and I'm working on being able to drag the pieces. However, the puzzle has certain rules. These are:
- A piece can only be moved to an adjacent grid location.
- The grid location must be open (blank or free).
- The piece can only be moved horizontally (x) or vertically (y). It cannot be moved diagonally.