add flagsLeft variable, to control maximum number of flags putted in the game, and the additional condition of winning game if the flagsLeft === 0