Well, I see some mess with curly brackets. It should not even compile. Also button logic seems to me unnecessary complicated. I do not know how your button library works, but something like that should be possible and is more simple, because you already have a loop provided by arduino environment.
void loop() {
if (btn1.pressed() && btn2.pressed()) {
digitalWrite (22,HIGH);
} else {
digitalWrite (22,LOW);
}
}