backend for turn based games