Add game matching logic and delegate actions to the updateUI method.