Drag the logic gates (and other items) onto the grid, link them by dragging the green dots to the item you wish to link with. Click the play button on the red switch to turn it on or off