@Override
    protected void doPost(final HttpServletRequest request, final HttpServletResponse response)
            throws ServletException, IOException {
        final String pathInfo = request.getPathInfo();
        if (GAME_INFO.matcher(pathInfo).matches()) {
            String[] params = pathInfo.split("/");
            final int gameId = Integer.parseInt(params[2]);
            final String query = params[3];
            final Game game = serverStatus.getGame(gameId);
            if (query.equals("public_cards")) {
                final PublicCards cards = game.getPublicCards();
                response.setContentType(Constants.JSON_TYPE);
                response.getWriter().print(JsonUtils.writeJsonObjectToString(cards));
            } else if (query.equals("stats")) {
                game.init();
                response.setContentType("text/html");
                response.setStatus(HttpServletResponse.SC_OK);
            } else {
                response.setContentType("text");
                response.getWriter().print("unknown request: " + pathInfo);
            }
        } else if (USER_INFO.matcher(pathInfo).matches()) {
        } else {
            response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
        }
    }