Changed 'pin' array to 'pin' HashMap