refactoring. judgement of game end.
create. websocket server.py websocket.js and html.
implement. send get request, and update state.