Not sure why that would have to be done server side though, couldn’t the server only be used for coordination/maintain state and then submit the current state/positions to the client and the client would render the board?
As such, the backend would do the heavy lifting of rendering the board, and send the rendered board back into the message group.
Of course one might be able to use emoji or text as a representation of said state if the game allows for it.