add web api for game actions