Modify areNeighbors and swapValuesAt to take tiles instead of indices as parameters. Modify click event handler.