added conditional to change value in array

This will change the value in my array depending on the users input