coding challenge: Create an app that can interactively play the game and never lose.