Added logic to find matching color tiles when clicking a colored tile