checkPin takes in already shifted pin masks