Code for Xs and (Xs and Os) and Os