pseudocode for Tetris mk 1