function ( a, // current board b, // current block c, // current position d, // new block offset for position e // placeholder: the layout to return ){ return d += c, // add offset to position e = a | b << d, // render layout based on board and moved block d < 0 | a & b< 1) 3 // double "##" (3 => 111) ), [ // the final return a, // new board b, // new block d, // new position e // final layout to render ] }