A back end engine for board games