Refactor TileGrid#swapWithTilesAt