New swap feature to switch elements position and check grid for equals