(x + y) % 2 === 0;
Apply Pattern