code: def on_right_click(self, widget):
          
          if self.opened:
              return
          self.state = (self.state + 1) % 3
          self.set_icon()
          self.game.check_if_win()
docs: Here with right click the change of cell is changed