Update grid after swap coordinates