define an api service for create game