Add initialize and terminate to tetris