There are spaces n-spaces where n-pieces can go to randomly.
then there is x-space where n-pieces get sent to if they are in the same place as an x-piece.
On a turn x-piece is sent to a random n-space, then an n-piece is sent to a random n-space.
If n-piece is on the same place as x-piece it gets sent to x-location.
How do I code that so that it is performed automatically?