got all the functions written, working out kinks, still not recognizing matched tiles