int playarray[5][5];
while (playarray < 21) //This is the while loops my program will use
playarray is actually the address of the first element of your minesweeper board, so checking whether it's lower than 21 is not really a good idea.
I think you mean:
while (turn < 21)
Also, I think that while loop should probably go within a separate function, or within the main function, but not floating out there somewhere outside of main.