finished loadPerfectSquare

now should work perfectly for any size >2.
not very efficient, but gets the job done.
also, refactored loadPerfectSquare and perfectSquare to loadMagicSquare
and magicSquare, respectively.