Change WLE Changes Array Function

Got rid of repetitive code and made it a function to add a change to
the array of changes.