Fixed rearranging of tiles
Changed the way tiles are moved and swapped