pulls state out of the row components and refactors into board component. sets up event handling so clicks on a box bubble up to the board itself