Add matching game logic, updateUI method