Replace bitwise AND with logical AND

Did you want a logical AND as opposed to a bitwise AND? In Scala the bitwise AND works out fine on Booleans but it is still wrong :)