developed api for game and integrated to prompt view