Standard Tetris implementation. Write it.