uncommented code that fixes a problem when no tiles are swapped after choosing to swap