Implemented OR and I believe that it works. There is a problem with one of the AND commands, I commented the line, please take a look