const click = (cell: Cell) => {
if (cell.board.currentPlayer.color === cell.figure?.color) {
cell.board.showAvailableCells(cell)
const board = cell.board.getBoardCopy()
setBoard(board)
socketRef.current?.send(board)
}
}