config rules for X and O