A metal 2 line can pass over a working cell without changing it. Only a via joins it to the metal below, so a via belongs only where the line's own metal lies.
Hint
Metal 2 passes over the rails and the transistors without joining them, so B can go straight down over the inverter. A pad may carry a via. Keep vias off the rails, because a via joins whatever metal lies under it.
Solution
This is the game's reference drawing for the puzzle. It meets the goal and passes the design rules. Other drawings can pass as well.
Top View of the solved die, captured from the game. Paths that carry a high level at the moment shown are lit. The Side View below cuts through the row between the dashed lines.The whole game window in Isometric View. The scope on the right compares each output with its target band, and the message above it confirms that the drawing passes.The solution on the grid. Squares are numbered from the top left corner, so you can count them. The dashed outline marks the squares you draw, change, or erase; the rest is drawn when the puzzle opens.
Legend
Metal45 squares
Polysilicon11 squares
Contact7 squares
N active5 squares
P active10 squares
N well36 squares
Metal 218 squares
Via2 squares
Input padB, A
Output padY, Z
Supply padVDD
Ground padGND
Squares you draw, change, or erase18 squares
About the drawing
The drawing uses 92 of the die's 198 squares.
Part of the drawing is in place when the puzzle opens. To finish it, paint 9 empty squares and change 9 drawn squares.
It forms 2 transistors: 1 N transistor and 1 P transistor. Each one is a place where polysilicon crosses active silicon.
7 contacts join metal to the polysilicon or active silicon under it.
2 vias join metal 2 to the metal under it.
The drawing when the puzzle opens. The dashed outline marks the squares the solution changes.