You called your original power array
powers, so you just left an
s off of your variables in this line:
var powerer = power[Math.floor(Math.random() * power.length)];
var powerer = powers[Math.floor(Math.random() * powers.length)];
If this solved your problem, please consider upvoting and marking my answer as the accepted answer to close this question. I'll continue to answer questions you may have.