Created API for game interaction.