update if elsif logic for displaying matches that are full or ended