Nonlinear codes for the yellow/blue mechanism