Workshop › Sokoban › Step 17 of 29
The player should see progress: a box sitting on a goal is drawn green instead of brown.
```js
for (const box of boxes) tile(box.x, box.y, goals.has(key(box.x, box.y)) ? '#22c55e' : '#b45309', 6)
```goals.has(key(box.x, box.y)) asks whether the box's tile is a goal.condition ? a : b picks green when it is, brown when it is not.In draw, in the box line, replace '#b45309' with the ? : choice.
Skills: Game states