and inside your constructor, you reference that array from 1..12 which is not correct. It should be 0..11. pins[12] is out of bounds.
and inside your constructor, you reference that array from 1..12 which is not correct. It should be 0..11. pins[12] is out of bounds.