drawBoard = (sideLength, cur, color) => {
let n = cur.word.length
let angle = Math.PI * 2 / n
const pts = []
for (let i = 0; i < n; i++) {
pts.push({
x: 50 + 39 * Math.cos(i*angle),
y: 50 + 39 * Math.sin(i*angle)
})
}
let r = 10
if (n > 12) r = 7
if (n > 17) r = 5
const onClick = function(i) {
mutable clicked = i
}
return svg`<svg height="${sideLength}" width="${sideLength}" viewbox="0 0 100 100">
<style>
.letter { font: 9px sans-serif; fill: ${color}; alignment-baseline:middle; text-anchor: middle; }
.guessed { font: 9px sans-serif; fill: ${guessedColor}; alignment-baseline:middle; text-anchor: middle; }
.timer { font: 6px sans-serif; fill: "#635a5a"; alignment-baseline:middle; text-anchor: middle; }
</style>
<circle cx="50" cy="50" r="39" stroke="#635a5a" stroke-width="3" fill="none"/>
${pts.map((x,i)=> svg`<g>
<circle cx="${x.x}" cy="${x.y}" r="${r}" stroke="#635a5a" stroke-width="2" fill="white"/>
<text x="${x.x}" y="${x.y}" class="letter">${cur.shuffle[i]}</text>
</g>`)}
`
}