Hello
I have been trying to figure how would I was a square detect if there another square is above it below, left, or right. So if there no square on lets say above it you can swipe up. I sort had it figured out but the method I had does work as it requires so many if statements. What would be a simple way I can make sure that any square detects an available empty spot to slide towards to and a square that indicates that the square that is trying to slide cannot slide to that certain side.