I am having problems with how to pick a random object on a grid, while avoiding certain objects.
Imagine a ball in a small grid. The ball moves from one position on the grid to another that is directly above, below, left or right. It can't move horizontally and it can't go out of the grid. I used pick nearest and it works well. Except I don't want it to move to a position in the grid where it had initially came from. For example, I don't want it to move from position A, to B, than to A again. It can go from A to B, to C, than to A again, but should not return to the last position.
For my example, we can use the UIDs, since all objects on the grid for the ball to move to is always constant and never gets destroyed. The problem is I really have no clue how to set it to pick nearest while making sure to avoid certain objects.