matches level pattern against generated pattern
buttons merged