Simple boolean gate simulator