Match pairs. Mismatches stay visible briefly.
You intentionally delay mismatch hiding and must lock clicks during that delay.
Open the code and try the variant ideas listed in comments near the bottom.