Use chessboard.js to provide the UI for playing games, because it's much better than mine.