OK, here is the last step of the game. You can copy this code and arrange these 3 steps as follows.
step - 1
step - 2
step - 0
I mean, 1st copy the step - 1 into some CPP file and then step - 2 and lastly step - 0.
Hope you'll enjoy the game.