The previous code was for a program which had a moving figure controllable by the user.We have added conditions for the movement of the figure so it has become something like the flappy bird game.