Removed array of integers to hold pins and replaced to the Pin object