Created swapTiles method
finished listener for tile