Instructions in the game. Get to them by clicking the '?' button.
This is @Pulljosh 's Tetris engine with a lot of extra details. Please join this contest: https://scratch.mit.edu/studios/25759158/