Generating pieces randomly Created method shuffleSequence(), it shuffles the pieceSequence array randomly. generateNextPiece (now generatePiece()) restarts the variable 'index', when it reaches the end of the array pieceSequence, and then calls shuffleSequence.
Generating pieces randomly
Created method shuffleSequence(), it shuffles the pieceSequence array randomly.
generateNextPiece (now generatePiece()) restarts the variable 'index', when it
reaches the end of the array pieceSequence, and then calls shuffleSequence.

matheussilvapb/Tetris