Add the button block for button B

Add the if the button B was clicked block under the if the button A was click. Click on A to select B.

Display/draw this smiley on the matrix if button B was clicked

click on the matrix’s dots to « switch the lights on ». Click again to « turn them off ».