Added some bitwise logic, not working too well right now though.
Got rid of bitwiseOps buttons for the sake of simplicity, can add in another version