front-end of game page connect to back-end