{#if $gamesOverlay.enabled && $gamesOverlay.matchId}
♛
{headerTitle}
{#if positionLabel}
Position {positionLabel}
{/if}
{#if $gameMode === 'spectating'}
Spectating
{/if}
{$gamesOverlay.minimized ? '□' : '−'}
×
{#if !$gamesOverlay.minimized}
{#if $gameMode === 'playing' && myColor}
{myColor === 'w' ? 'White' : 'Black'}
{/if}
{statusMessage}
{#each boardSquares as row}
{#each row as cell}
handleSquareClick(cell.square)} > {#if cell.piece}
{cell.piece}
{/if}
{/each}
{/each}
startResize(e, 'e')}>
startResize(e, 's')}>
startResize(e, 'se')}>
startResize(e, 'w')}>
startResize(e, 'sw')}>
{/if}
{/if}