every? instead of (and (map
scala solution to sleeping barber problem