{#if mainhand}
{/if}
{#each Array.from( { length: 3 }, (_, rowIndex) => grid.slice(rowIndex * 3, (rowIndex + 1) * 3) ) as row, rowIndex}
{#each row as w, colIndex}
{#if w}
{/if}
{/each}
{/each}