added swappedMatches funciton, setting up for tile removal, added more comments