by Sérgio Gaspar for freeCodeCamp Challenge:Build Simon game.