if (mutableSlots) {
chbox.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
JCheckBox chbox = (JCheckBox) e.getSource();
client.getConnection().send(new SetRuleMessage(game.getGameId(), rule, chbox.isSelected()));
}
});
} else {
chbox.setEnabled(false);
}