Tetris example: refactoring