Why doesnt just connecting 2 inputs to the output work as an OR? seems fine to me and all the NAND looks more complicated for no reason
Is it just code error?