Make the program tell you what it is writing to and reading from the Powernumbers array:


for (Powerrow = 0; Powerrow < 3; Powerrow++)
{
for (Powercolumns = 0;...